Rosetta Problems

The Last Dungeon

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