![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树状dp
zero_one_Machel
这个作者很懒,什么都没留下…
展开
-
D - Party at Hali-Bula(树上DP)
Dear Contestant,I’m going to have a party at my villa at Hali-Bula to celebrate my retirement from BCM. I wish I could invite all my co-workers, but imagine how an employee can enjoy a party when he ...原创 2019-08-12 15:12:22 · 131 阅读 · 0 评论 -
A - Balancing Act(树状dp)
Consider a tree T with N (1 <= N <= 20,000) nodes numbered 1…N. Deleting any node from the tree yields a forest: a collection of one or more trees. Define the balance of a node to be the size of...原创 2019-08-16 12:52:07 · 256 阅读 · 0 评论