会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
杂旸
博客园
首页
新随笔
联系
订阅
管理
2018年4月27日
black box(大根堆小根堆)
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 int a[30010],b[30010],ha[30010],hb[30010],na,nb; 6 void upa(int p){ 7 while(p>1){ 8 if(ha[p]1){ 21 if(hb[p]>hb[p/...
阅读全文
posted @ 2018-04-27 19:01 杂旸
阅读(99)
评论(0)
推荐(0)
2018年4月26日
POJ1456 Supermarket(二叉堆,小根堆)
摘要: #include<iostream> #include<algorithm>#include<cstring>using namespace std;struct node{int d,p;}a[10010];int heap[10010],n;void up(int p){ while(p>1){
阅读全文
posted @ 2018-04-26 18:09 杂旸
阅读(106)
评论(0)
推荐(0)
phone list (字典树)
摘要: #include<iostream>#include<cstring>using namespace std;struct node{int son[11];//电话号码最多11位 bool ed; void clear(){ memset(son,0,sizeof(son)); ed=0; }};
阅读全文
posted @ 2018-04-26 16:47 杂旸
阅读(93)
评论(0)
推荐(0)
2018年4月11日
milking grid
摘要: #include<iostream>#include<cstring>char a[10010][85],za[85][10010];int R[10010],C[10010];using std::cin;using std::cout;using std::endl;int r,c; void
阅读全文
posted @ 2018-04-11 22:06 杂旸
阅读(108)
评论(0)
推荐(0)
公告