Rosetta Problems

A Garden with Ponds

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