摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4801离线做,将查询区间从小到大排序,具体处理见代码My Code 1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 using namespace std; 5 #define maxn 50002 6 struct op 7 { 8 int l,r,id; 9 }mes[maxn];10 int num[maxn*10],pos[maxn*10];11 i 阅读全文