ACM__优先队列
文章平均质量分 80
wust_zwl
学不死,就往死里学。
展开
-
Codeforces 134C Swaps (bfs+优先队列)【模板】
There are n players sitting at a round table. All of them have s cards of n colors in total. Besides, initially the first person had cards of only the first color, the second one had cards of only the second color and so on. They can swap the cards by the原创 2017-08-08 20:15:02 · 499 阅读 · 0 评论 -
POJ 3253 Fence Repair(STL之优先队列)
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) units. He then purchases a single long board j原创 2017-08-22 20:32:17 · 253 阅读 · 0 评论