摘要: POJ 3253 Fence Repair (优先队列) Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs 阅读全文
posted @ 2016-07-21 22:39 晴雨天 阅读(1410) 评论(0) 推荐(0) 编辑
摘要: STL 中优先队列的使用方法(priority_queu) 基本操作: empty() 如果队列为空返回真 pop() 删除对顶元素 push() 加入一个元素 size() 返回优先队列中拥有的元素个数 top() 返回优先队列对顶元素 在默认的优先队列中,优先级高的先出队。在默认的int型中先出 阅读全文
posted @ 2016-07-21 22:14 晴雨天 阅读(999) 评论(0) 推荐(1) 编辑