Rosetta Problems

Tree Game

https://atcoder.jp/contests/abc398/tasks/abc398_e