为何要在结构体中要将 r 初始化为 -1?(题解)
(亲测改为r=0同样通过了本题)
... struct node{ int l,r; mutable ll v; node(int l,int r=-1,ll v=0):l(l),r(r),v(v){} ... }; ...