
线段树
线段树
霍雨浩——舞麟
这个作者很懒,什么都没留下…
展开
-
Can you answer these queries III (线段树)
#include<bits/stdc++.h> #define size 500005 using namespace std; int a[size]; struct tree { int l,r; ///l,r左右端点 int data; ///data区间最大子序列和 int lmax; ///lmax区间左端点开头的最大连续子序列和 int rmax; ///rmax区间左端点开头的最大连续子序列和 int sum; ..原创 2020-10-05 17:01:18 · 97 阅读 · 0 评论 -
敌兵布阵 ---线段树单点修改+区间求和
https://vjudge.net/problem/HDU-1166 #include<stdio.h> #include<iostream> #include<algorithm> #include<string.h> #include<math.h> #include<string> #include<vector...原创 2020-02-29 16:20:26 · 146 阅读 · 0 评论