Rosetta Problems

Treasure Hunter

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