会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
wspl98765
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2017年3月17日
黑匣子
摘要: 维护一个大根堆,维护一个小根堆,大根堆有k个数,堆首就是第k大的,不会写堆,这里用优先队列来实现#include#include#includeusing namespace std;int n,m;int k=0;long long a[299999];int f[299999]...
阅读全文
posted @ 2017-03-17 15:59 wspl98765
阅读(121)
评论(0)
推荐(0)
编辑
挤牛奶
摘要: 桶排的思想,数据太水,过了,还有正解排序维护一个区间,时刻更新,所以要赋初值,找到n+1否则不更新#include#includeusing namespace std;int f[2000000];int max1=0,max2=0,max3=-9999999;int n;int...
阅读全文
posted @ 2017-03-17 15:00 wspl98765
阅读(118)
评论(0)
推荐(0)
编辑
公告