Rosetta Problems

Size of Territory

https://onlinejudge.u-aizu.ac.jp/problems/4008