B. Sorting the Coins
time limit per test
1 second
memory limit per test
512 megabytes
input
standard input
output
standard output
Recently, Dima ......
CodeForces - 1076E
Problem Description:
Vasya has a tree consisting of n vertices with root in vertex 1. At first all vertices has 0 written on it.
......