![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线段树点修改
Miracle_QSH
这个作者很懒,什么都没留下…
展开
-
HDU - 1166 敌兵布阵(线段树点修改)
#include <cstring>#include <cstdlib>#include <cstdio>#include <algorithm>using namespace std;typedef long long ll;ll num[50005];char cmd[105];struct node{ ll l, r...原创 2018-12-12 21:06:45 · 183 阅读 · 0 评论 -
HDU - 1754 I Hate It (线段树点修改)
#include <bits/stdc++.h>using namespace std;typedef long long ll;struct node{ ll l, r, sum;}a[1000005];ll num[200005];void build(ll loc, ll l, ll r){ if(l == r) { a[...原创 2018-12-12 21:08:26 · 211 阅读 · 1 评论