求助,权值线段树过不了样例

P3224 [HNOI2012] 永无乡

@[nofind](/space/show?uid=145441) ~~这题不是splay吗~~
by 我不认识你 @ 2019-05-02 15:09:09


@[我不认识你](/space/show?uid=111380) 线段树合并可以过,请您看看
by nofind @ 2019-05-02 15:10:13


@[i207M](/space/show?uid=58302)
by nofind @ 2019-05-02 15:14:18


!?连样例都没过,手玩查错啊。这都不能自己调,考试时怎么办
by i207M @ 2019-05-02 20:20:07


|