摘要: http://acm.hfut.edu.cn/OnlineJudge/个人感觉是挺有意思的一道题目,排序+离线处理+线段树统计。 1 #include <cstdio> 2 #include <algorithm> 3 using namespace std; 4 #define lson l,m,rt<<1 5 #define rson m+1,r,rt<<1|1 6 #define maxn 20005 7 struct node{ 8 int lnum,rnum,num; 9 }setree[maxn<<2];10 struct 阅读全文