Rosetta Problems

JOI 公園 (JOI Park)

https://atcoder.jp/contests/joi2015ho/tasks/joi2015ho_c