Rosetta Problems
← atcoder に戻る
Tree Game
https://atcoder.jp/contests/agc010/tasks/agc010_f