![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
#线段树
草辟
这个作者很懒,什么都没留下…
展开
-
HDU 1754 题解
线段树模板题,复健。题目#include<cstdio>#include<cstring>#include<algorithm>#define INF 0x3f3f3f3fusing namespace std;const int maxn=200005;struct Tree{ int l,r,w;}t[maxn<<2];vo...原创 2019-10-25 00:39:07 · 144 阅读 · 0 评论 -
HDU 1166 题解
复健线段树模板题。题目#include<cstdio>#include<cstring>#define INF 0x3f3f3f3fusing namespace std;const int maxn=50005;struct Tree{ int l,r,w;}t[maxn<<2];void update(int now){ t[now]...原创 2019-10-25 00:01:04 · 132 阅读 · 0 评论