摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4366 1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 using namespace std; 5 #define lson l,m,rt<<1 6 #define rson m+1,r,rt<<1|1 7 #define maxn 50005 8 struct node{ 9 int num,id; 10 }setree[maxn<<2]; 11 st 阅读全文