CodeForces 1287 D.Numbers on Tree (dfs)

D.Numbers on Tree Evlampiy was gifted a rooted tree. The vertices of the tree are numbered from 1 to n. Each of its vertices also has an integer ai written on it. For each vertex i, Evlampiy calculate
相關文章
相關標籤/搜索