RE,悬一关

P3366 【模板】最小生成树

@[Pollococido](/user/919410) ``` cpp int find(int x) { if (fa[x] != x) fa[x] = find(fa[x]); else return fa[x]; } ``` 改成 ``` cpp int find(int x) { if (fa[x] != x) return fa[x] = find(fa[x]); else return fa[x]; } ```
by yx666 @ 2024-07-10 22:27:25


谢dalao,已关 此贴结
by Pollococido @ 2024-07-10 22:44:59


|