Rosetta Problems

砂の城 (Sandcastle)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/207