Rosetta Problems

Share the Ruins Preservation

https://atcoder.jp/contests/jag2016autumn/tasks/icpc2016autumn_g