![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树上24题系列
pigzhouyb
一个来自浙江的可爱的萌萌哒的肥肥胖胖的OIer
展开
-
『树上24题系列』CF1244D Paint the Tree
Problem\mathrm{Problem}ProblemYou are given a tree consisting of nnn vertices. A tree is an undirected connected acyclic graph.Example of a tree.You have to paint each vertex into one of three colors. For each vertex, you know the cost of painting it in原创 2020-05-22 15:55:01 · 260 阅读 · 0 评论 -
『树上24题系列』CF1085D Minimum Diameter Tree
Problem\mathrm{Problem}ProblemYou are given a tree (an undirected connected graph without cycles) and an integer sss .Vanya wants to put weights on all edges of the tree so that all weights are non-negative real numbers and their sum is sss . At the same原创 2020-05-22 14:38:17 · 216 阅读 · 0 评论 -
『树上24题系列』CF842C Ilya And The Tree
Solution\mathrm{Solution}SolutionIlya is very fond of graphs, especially trees. During his last trip to the forest Ilya found a very interesting tree rooted at vertex 111 . There is an integer number written on each vertex of the tree; the number written原创 2020-05-22 13:17:33 · 197 阅读 · 0 评论