2013年2月19日

摘要: 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 阅读全文
posted @ 2013-02-19 22:35 kim888168 阅读(188) 评论(0) 推荐(0) 编辑
 
摘要: http://www.spoj.com/problems/GSS1/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 50010 7 struct node 8 { 9 int lmax,rmax,max,sum;10 }setree[maxn<<2];11 int ans;12 void pushup 阅读全文
posted @ 2013-02-19 20:43 kim888168 阅读(165) 评论(0) 推荐(0) 编辑