Rosetta Problems

Polygons on the Grid

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