Rosetta Problems

Takahashikun, The Strider

https://atcoder.jp/contests/agc046/tasks/agc046_a