05 2012 档案
hdu1968------------线段树
摘要:这段时间不怎么写文章了,但没偷懒。一直刷题,学习哦!比如这一集是我第三道线段树,嘿嘿,越来越明白了。不错#include<stdio.h>struct node{ int l; int r; int num;}nod[400005];void build(int l,int r,int n){ nod[n].l=l; nod[n].r=r; nod[n].num=1; if(l==r) return ; int mid=(l+r)/2; build(l,mid,n*2); build(mid+1,r,n*2+1);}void u... 阅读全文
posted @ 2012-05-19 21:48 hrbust_09zhangyabin 阅读(187) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示