Rosetta Problems

歩くNPCたち(Walking NPCs)

https://atcoder.jp/contests/tkppc2/tasks/tkppc2016_e