吓死了,以为你说样例给错了,一看,还是模板。。。
by 君のNOIP。 @ 2020-04-09 18:42:05
诶,是 z h h g g 啊!
by 君のNOIP。 @ 2020-04-09 18:42:47
@[君のNOIP。](/user/250469)
您发现问题了吗?
by WaltVBAlston @ 2020-04-09 18:42:58
中国好哥哥
by andyli @ 2020-04-09 18:43:07
换了头像根本认不出来。
by 君のNOIP。 @ 2020-04-09 18:43:09
我要是管理员,非得禁言你
~~可惜我不是~~
by WaltVBAlston @ 2020-04-09 18:43:34
几月没打线段树了,告辞。
by 君のNOIP。 @ 2020-04-09 18:43:48
@[Andy_2006](/user/261262) pushdown 中
```cpp
tree[left_child]=exe[node]*lenl;
tree[right_child]=exe[node]*lenr;
```
改为
```cpp
tree[left_child]+=exe[node]*lenl;
tree[right_child]+=exe[node]*lenr;
```
update_tree 中
```cpp
tree[node]=k*(end-start+1);
exe[node]=k;
```
改为
```cpp
tree[node]+=k*(end-start+1);
exe[node]+=k;
```
您的数组 tree 与 a 开大了 10 倍
by andyli @ 2020-04-09 18:45:46
@[andyli](/user/84282)
谢了,做的是另外一道题。。。。
by WaltVBAlston @ 2020-04-09 18:46:46
我说我的代码对应的是
by WaltVBAlston @ 2020-04-09 18:46:59