Rosetta Problems

縄張り (Territory)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/354