Rosetta Problems

ほんとうのたたかい

https://atcoder.jp/contests/arc019/tasks/arc019_4