求助,30pts,MLE

P3384 【模板】重链剖分/树链剖分

@[asasas](/user/261417) ```cpp if (depth[x]<depth[y]) swap(x,y); ``` 改成 ```cpp if (depth[top[x]]<depth[top[y]]) swap(x,y); ```
by Sharing666 @ 2022-07-13 07:26:19


两个函数都要改
by Sharing666 @ 2022-07-13 07:27:46


你过了啊那没事了 /lh
by Sharing666 @ 2022-07-13 07:30:49


@[Sharing666](/user/394991) thx
by asasas @ 2022-07-13 13:52:51


|