Rosetta Problems

散歩 (E869120 and Path Length)

https://atcoder.jp/contests/s8pc-1/tasks/s8pc_1_e