哈夫曼树
Wardell Ⅱ
这个作者很懒,什么都没留下…
展开
-
CodeForces 884D---Boxes And Balls(哈夫曼树)
传送门:https://codeforces.com/problemset/problem/884/D Description Ivan has n different boxes. The first of them contains some balls of n different colors. Ivan wants to play a strange game. He wants to distribute the balls into boxes in such a way that for e原创 2020-07-31 16:16:51 · 258 阅读 · 0 评论 -
POJ 3253---Fence Repair(哈夫曼树)
传送门:http://poj.org/problem?id=3253 Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of wood, each having some integer length Li (1 ≤ Li ≤ 50,000)原创 2020-07-31 16:03:18 · 167 阅读 · 0 评论