![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
优先队列
我_是好人
我会加油的!
展开
-
poj 3253 Fence Repair
Fence RepairTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 40272 Accepted: 13156DescriptionFarmer John wants to repair a small length of the fence arou原创 2016-08-12 19:45:39 · 226 阅读 · 0 评论 -
STL 优先队列
先回顾队列的定义:队列(queue)维护了一组对象,进入队列的对象被放置在尾部,下一个被取出的元素则取自队列的首部。priority_queue特别之处在于,允许用户为队列中存储的元素设置优先级。这种队列不是直接将新元素放置在队列尾部,而是放在比它优先级低的元素前面。标准库默认使用优先队列有两种,一种是最大优先队列;一种是最小优先队列;每次取自队列的第一个元素分别是优先级最大和优先级最小的转载 2016-08-12 19:12:02 · 196 阅读 · 0 评论 -
poj 2442 Sequence
SequenceTime Limit: 6000MS Memory Limit: 65536KTotal Submissions: 8969 Accepted: 2992DescriptionGiven m sequences, each contains n non-negative integer. Now we ma原创 2016-08-13 09:39:39 · 214 阅读 · 0 评论 -
poj 1442 Black Box
Black BoxTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 10622 Accepted: 4378DescriptionOur Black Box represents a primitive database. It can save an原创 2016-08-13 16:31:51 · 269 阅读 · 0 评论