Rosetta Problems

Distance Queries on a Tree

https://atcoder.jp/contests/abc294/tasks/abc294_g