随笔分类 - 数据结构---线段树
摘要:A - A Simple Problem with Integers "C a b c" means adding c to each of Aa, Aa+1, ... , Ab. -10000 ≤ c ≤ 10000."Q a b" means querying the sum of Aa, Aa
阅读全文
摘要:浅谈线段树 线段树详解(非递归实现) 线段树与树状数组的区别,作者:闵梓轩 demo /***********************************************/ int n,a[maxn+2],m; struct node{ int l,r; int h; }tree[4*m
阅读全文