Rosetta Problems

小石を取るゲーム

https://atcoder.jp/contests/arc028/tasks/arc028_1