惨痛教训:如果你的线段树70分但是你觉得没有错误

P3372 【模板】线段树 1

Traitorous_X @ 2022-11-08 13:07:13

那就把你看见的所有 int 改成 long long 有奇效


by luqyou @ 2022-11-08 13:29:04

@Traitorous_X do you know #define int long long


by A1438329629 @ 2022-11-08 13:33:58

《signed》


by Traitorous_X @ 2022-11-08 14:06:33

@luqyou i am just an amorphophallus

forgive me


by 这是蜡笔大新 @ 2022-11-16 19:36:49

如果你还是70分,把数组加个0试试


by lwyyds @ 2022-11-20 10:59:33

大哥,你说得好


by 流泪的小酒窝 @ 2022-11-21 11:05:46

@A1438329629 《%lld》


by zbhujiaqi @ 2022-11-23 08:03:54

+1

此外,下传标记时要判断是否为叶子结点,我因为这个卡了一晚上......


|