Rosetta Problems
← atcoder に戻る
Playing Tag on Tree
https://atcoder.jp/contests/abc148/tasks/abc148_f