
segment tree
小学生反弹
这个作者很懒,什么都没留下…
展开
-
线段树 super mario
http://www.cnblogs.com/shuaiwhu/archive/2012/04/22/2464583.html 研究了好久的线段树,这是一篇在网上看的比较好的总结的了。。 线段树是一颗二叉树,树中的每一个结点都对应一条线段[a,b],树中的结点是叶子结点,仅代表元线段,树中的非叶子结点,左指数树根仅代表[a,(a+b)/2],右指数树根代表[(a+b)/2,b]. Pro转载 2013-12-08 10:15:32 · 593 阅读 · 0 评论 -
poj 3468:A Simple Problem with Integers
A Simple Problem with Integers TimeLimit: 5 sec Description You have N integers, A1, A2, ... , AN.You need to deal with two kinds of operations. One type of operation is to addsome given number转载 2013-12-08 10:38:39 · 450 阅读 · 0 评论