Rosetta Problems

Evacuation Route

https://atcoder.jp/contests/awc0113/tasks/awc0113_c