如果你主席树WA65
查看原帖
如果你主席树WA65
807950
xyvsvg楼主2025/6/22 17:43

注意 00 也要建根

for(int i=n;~i;--i)
    modify(root[i+1],root[i]=++tot,1,N+1,a[i].p,a[i].l);
2025/6/22 17:43
加载中...