Rosetta Problems
← atcoder に戻る
Weighting a Tree
https://atcoder.jp/contests/awc0164/tasks/awc0164_a