[UVA] 10672 - Marbles on a tree
Problem E: Marbles on a tree
n boxes are placed on the vertices of a rooted tree, which
are numbered from 1 to n,
1 ≤ n ≤ 10000. Each box is either
empty or contains a number of marbles; the total number of marbles is
n.
The task is to move th...