摘要: Problem: http://poj.org/problem?id=3264求区间内最大值最小值的差minv[]维护最小值maxv[]维护最大值 1 #include 2 #include 3 using namespace std; 4 5 #define lson l , m , rt> 1;29 build(lson);30 build(rson);31 pushup(rt);32 }33 34 35 void query(int L,int R,int l,int r,int rt)36 {37 if(L> 1;45 if(L m)... 阅读全文
posted @ 2014-03-15 14:54 Cshhr 阅读(299) 评论(0) 推荐(0) 编辑