摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=4217View Code 1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 typedef __int64 LL; 6 const int N=270000; 7 int c[N]; 8 int lowbit(int x) 9 {10 return x&(-x);11 }12 void add(int x,int p,int maxn)13 {14 for(int i=p;i<=maxn
阅读全文