会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
frankM
天下武功,唯快不破。
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2014年5月10日
HDU 1896 Stones
摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=1896学了下优先队列:#include #include #define MAX(a,b) ((a) > (b) ? (a) : (b)) using namespace std;struct node{ i...
阅读全文
posted @ 2014-05-10 17:50 frankM
阅读(153)
评论(0)
推荐(0)
编辑
priority_queue的用法
摘要: priority_queue调用 STL里面的 make_heap(), pop_heap(), push_heap() 算法实现,也算是堆的另外一种形式。先写一个用 STL 里面堆算法实现的与真正的STL里面的 priority_queue用法相似的priority_queue, 以加深对 pri...
阅读全文
posted @ 2014-05-10 17:35 frankM
阅读(193)
评论(0)
推荐(0)
编辑
公告