Rosetta Problems

Problem on Tree

https://atcoder.jp/contests/cf16-relay-open/tasks/relay_k