Rosetta Problems

Jump and Walk

https://atcoder.jp/contests/tkppc6-1/tasks/tkppc6_1_n