会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cc123321
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
2017年8月18日
RMQ模板
摘要: RMQ的模板,应该还是比较清晰易懂的,ma[i][j]的意思是从i开始到后面的2^j-1位中最大的数字。
阅读全文
posted @ 2017-08-18 11:11 cc123321
阅读(199)
评论(0)
推荐(0)
2017年8月13日
带有lazy标记的线段树
摘要: #include using namespace std; int n,m,x,y,val,com,s[100000]; struct st{ int l,r,val,add; }tr[10000000]; void build(int l,int r,int k) { tr[k].l=l; tr[k].r=r; if(l==r) { tr...
阅读全文
posted @ 2017-08-13 14:43 cc123321
阅读(244)
评论(0)
推荐(1)
2017年8月11日
写一下SPFA和迪杰斯特拉的模版。。。第一次写博客,有错请提出哦!
摘要: SPFA的模版 #include using namespace std; queue q; typedef pair PII; vector s[1000000]; int m,n,x,y,val,dian[1000000],zou[1000000],rankk,zhong; main(){ scanf("%d%d",&n,&m);//n个点,m条边; for(in...
阅读全文
posted @ 2017-08-11 20:30 cc123321
阅读(302)
评论(0)
推荐(0)
上一页
1
2
3
4
5
公告