Rosetta Problems

Remodeling the Dungeon

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