摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1754 1 #include 2 #include 3 #include 4 #define maxn 300000 5 using namespace std; 6 7 int a[maxn]; 8 int max2; 9 struct node 10 { 11 int l,r,max1; 12 }tree[maxn*4]; 13 14 15 void build(int i,int l,int r) 16 { 17 tree[i].l=l; 18 tr... 阅读全文
posted @ 2014-03-06 19:57 null1019 阅读(146) 评论(0) 推荐(0) 编辑