摘要:
http://www.spoj.com/problems/GSS3/My Code 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 50001 7 struct node 8 { 9 int lmax,rmax,max,sum;10 }setree[maxn<<2];11 int ans;12 void pushup 阅读全文