Rosetta Problems

すごろくの並び替え(Sort of Sugoroku)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1171