Rosetta Problems
← atcoder に戻る
Ancient Scrolls
https://atcoder.jp/contests/jag2012autumn/tasks/icpc2012autumn_k