摘要: http://poj.org/problem?id=3277线段树,离散化,成段更新 1 #include 2 #include 3 4 #define lson l, m, rooty? x: y; 15 } 16 17 void push_up(long long root) 18 { 19 max1[root] = max(max1[root> 1; 41 build(lson); 42 build(rson); 43 push_up(root); 44 } 45 46 void update(long long L, long long... 阅读全文
posted @ 2013-08-03 20:59 Yuan1991 阅读(245) 评论(0) 推荐(0) 编辑