• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
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 阅读(157) 评论(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 阅读(201) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3