摘要: http://www.spoj.com/problems/GSS4/My Code 1 #include <cstdio> 2 #include <cmath> 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 100010 8 typedef long long LL; 9 struct node10 {11 int c;12 LL sum;13 }set 阅读全文