Rosetta Problems
← atcoder に戻る
Game on Tree
https://atcoder.jp/contests/agc017/tasks/agc017_d