Rosetta Problems

Surround the Castle

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