Rosetta Problems

Shik and Game

https://atcoder.jp/contests/agc007/tasks/agc007_d