Rosetta Problems

Sinking islands

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