Rosetta Problems

往復すごろく (Round Sugoroku)

https://atcoder.jp/contests/joi2021yo2/tasks/joi2021_yo2_a