Rosetta Problems

How Many Islands?

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