[CF739B] Alyona and a tree 详解
B. Alyona and a treeAlyona has a tree with n vertices. The root of the tree is the vertex 1. In each vertex Alyona wrote an positive integer, in the vertex i she wrote ai. Moreover, the girl wro...