Rosetta Problems

Shortest Evacuation Route

https://atcoder.jp/contests/awc0051/tasks/awc0051_d