hdu 5372 离散化加树状数组
注意离散化的时候是对左右端点一起离散化的,所以maxn要开成2倍的~#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int maxn=2e5+10;
struct node{
int op,l,r;
}a[maxn];
int c1[maxn<<1],c2[maxn<<1];
int lowbit
原创
2016-05-31 08:57:43 ·
363 阅读 ·
0 评论