Rosetta Problems

Labeled Tree Distance

https://atcoder.jp/contests/nupc2024/tasks/nupc2024_f