@[切格瓦·庆](/space/show?uid=203867)
```cpp
void spread(int q)
{
if(t[q].sp)
{
t[q<<1].sp+=t[q].sp;t[q<<1|1].sp+=t[q].sp;
t[q<<1].maxx+=t[q].sp;t[q<<1|1].maxx+=t[q].sp;
t[q].sp=0;
}
}
```
by EternalAlexander @ 2019-10-21 16:33:30
大佬,怎么了嘛
by 苏幕寒 @ 2019-10-21 16:35:06
@[切格瓦·庆](/space/show?uid=203867) 用上面这个把你的spread换掉
by EternalAlexander @ 2019-10-21 16:35:48
???
那一个呀
by 苏幕寒 @ 2019-10-21 16:37:35
@[切格瓦·庆](/space/show?uid=203867) 就是你的spread函数中间`=`应该改成`+=`,上面我发的那一段是正确的spread。
by EternalAlexander @ 2019-10-21 16:38:57
哦
by 苏幕寒 @ 2019-10-21 16:39:27
谢谢大佬
by 苏幕寒 @ 2019-10-21 16:39:35
过了
by 苏幕寒 @ 2019-10-21 16:40:01