Rosetta Problems

ドラゴン 2 (Dragon 2)

https://atcoder.jp/contests/joisc2017/tasks/joisc2017_l