Rosetta Problems

最古の遺跡2 (Ruins)

https://atcoder.jp/contests/joisc2008/tasks/joisc2008_ruins