Rosetta Problems

縄張り (Territory)

https://atcoder.jp/contests/joi2016ho/tasks/joi2016ho_d