Rosetta Problems

Playing Tag on Tree

https://atcoder.jp/contests/abc148/tasks/abc148_f