Rosetta Problems

Moats around the Castle

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