
线段树
Aqua_blue
wu
展开
-
线段树
线段树模板 区间修改区间查询 例题 codevs 1082线段树练习3(注意sum要开long long!) #include #include const int maxn = 200010; int num[maxn]; struct node{ int l,r; long long sum,delta; }t[maxn << 2]; void build(int cur,in原创 2016-02-05 13:57:48 · 327 阅读 · 0 评论 -
BZOJ 3065 带插入区间K小值
3065: 带插入区间K小值 Time Limit: 60 Sec Memory Limit: 512 MB Submit: 3543 Solved: 1140 [Submit][Status][Discuss] Description从前有n只跳蚤排成一行做早操,每只跳蚤都有自己的一个弹跳力a[i]。跳蚤国王看着这些跳蚤国欣欣向荣的情景,感到非常高兴。这时跳蚤国王决定理性愉悦一下,查询原创 2017-07-26 23:10:28 · 430 阅读 · 0 评论