2013年8月2日

HDU4638

摘要: 1 /*树状数组求和,一边询问一边维护,离线处理*/ 2 #include 3 #include 4 #include 5 using namespace std; 6 const int maxn=100000+10; 7 struct point 8 { 9 int l,r,index; 10 }node[maxn]; 11 int a[maxn]; 12 int num[maxn]; 13 int index[maxn]; 14 int result[maxn]; 15 int n,m; 16 bool cmp(const point a,const poin... 阅读全文

posted @ 2013-08-02 10:27 ok_boy 阅读(286) 评论(0) 推荐(0) 编辑

导航