Rosetta Problems

Secrets of Legendary Treasure

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