Rosetta Problems

AB Game

https://atcoder.jp/contests/arc145/tasks/arc145_b