Rosetta Problems
← atcoder に戻る
Construction of a tree
https://atcoder.jp/contests/agc029/tasks/agc029_f