Rosetta Problems

Shortest Distance Query

https://atcoder.jp/contests/past202104-open/tasks/past202104_o