Rosetta Problems

Tree Queries

https://atcoder.jp/contests/arc142/tasks/arc142_c