Virus Tree 2(树)

题目描述 You are given a tree with N vertices and N−1 edges. The vertices are numbered 1 to N, and the i-th edge connects Vertex ai and bi. You have coloring materials of K colors. For each vertex in the
相关文章
相关标签/搜索