![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线段树
dukig
尽人事,知天命。
展开
-
hdoj2795(线段树)
这题要用scanf,不然runtime error#include<iostream>#include<algorithm>#include<cstdio>#include<cstring>using namespace std;typedef long long ll;const int sz = 200000;int sum...原创 2019-04-11 13:18:15 · 203 阅读 · 0 评论 -
hdoj1754(线段树)
练下区间最大值的手lololol,以前写线段树竟然超时。#include<iostream>#include<algorithm>#include<cstdio>#include<cstring>#define lson l,mid,sz<<1#define rson mid+1,r,sz<<1|1 usin...原创 2019-04-11 21:29:51 · 174 阅读 · 0 评论