@[sail_with_pleasure](/user/549999) 你的删除操作改一下,
```cpp
split(l,x-1,l,left);
root=merge(l,r);
```
这样少WA一个点
by hegm @ 2023-04-13 08:52:51
@[sail_with_pleasure](/user/549999) 你的删除写错啦
by hegm @ 2023-04-13 08:57:53
如果删除的是 `y`,应该按照 `y`分裂,而不是按照 `y+1`分裂。
by hegm @ 2023-04-13 08:58:42
你写的话可能删除的是 `y+1` 而不是 `y`。![](//图.tk/3)
by hegm @ 2023-04-13 08:59:52
@[hegm](/user/331947) wssb
by sail_with_pleasure @ 2023-04-13 09:11:59
@[hegm](/user/331947) 已经过啦!!!
rmb微信转您?
by sail_with_pleasure @ 2023-04-13 09:13:24
@[sail_with_pleasure](/user/549999) 只需要关注![](//图.tk/q)
by hegm @ 2023-04-13 09:13:42
@[hegm](/user/331947) 好的呢,再次表示感谢
by sail_with_pleasure @ 2023-04-13 09:14:12