Rosetta Problems

Treasure Hunt II

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