Rosetta Problems

Mystery of an Ancient Ruin

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