Rosetta Problems

Tree and Constraints

https://atcoder.jp/contests/abc152/tasks/abc152_f