会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Leptus
新随笔
管理
2014年11月10日
poj 3053 Fence Repair(优先队列)
摘要: 题目链接:http://poj.org/problem?id=3253思路分析:题目与哈夫曼编码原理相同,使用优先队列与贪心思想;读入数据在优先队列中,弹出两个数计算它们的和,再压入队列中;代码如下:#include #include using namespace std;struct cmp{ ...
阅读全文
posted @ 2014-11-10 18:31 Leptus
阅读(154)
评论(0)
推荐(0)
编辑