Rosetta Problems

ICPC 2024 miền Trung - G: Corner-Shared Cells

https://oj.vnoi.info/problem/icpc24_mt_g