@[ctq1999](/user/18673)
您好,谢谢您的回复
我之前的写法应该是`sumv += 1ll * (r - l + 1) * val;`
所以我当时觉得该ll的地方都做了处理,因为困惑哪里有问题在这个帖子里做了回复
这个是我当时提交的链接不知道您能否看到。
[50分的提交](https://www.luogu.com.cn/record/37550815)
by WuTUT @ 2020-09-13 20:23:24
@[WuTUT](/user/213727)
你好,你需要把你线段树的 update 的 val 类型改成 ll。因为在 pushdown 时,tr[x].addv 可能爆 int 了。
by ctq1999 @ 2020-09-13 23:08:23
@[ctq1999](/user/18673) 我明白了,非常感谢!我之前一直都没发现这个问题。
by WuTUT @ 2020-09-16 12:20:57
@[ctq1999](/user/18673) 我也是这个问题,十分感谢
by 401rk8 @ 2020-10-05 11:51:53