AGC020 A: Move and Win

A - Move and Win

https://github.com/HiroakiMikami/procon-workspace/blob/master/src/atcoder/agc020/a.cc