@[5743377_2002](/space/show?uid=36701) find写错了
by 准点的星辰 @ 2018-08-22 18:38:37
QAQ
```
int find(int x)
{
if(f[x]!=x)
return f[x]=find(f[x]);
}
```
by Viston @ 2018-08-22 19:03:23
我还是第一次见到如此骚气的find函数
~~这应该才是正解吧~~
`````cpp
int find(int x){
if(fa[x]==x) return x;
return fa[x]=find(fa[x]);
}
````
by Sirius_X @ 2018-08-22 19:12:05
@[三号血神](/space/show?uid=53021) 你是在说本蒟蒻吗QWQ
by Viston @ 2018-08-22 19:16:06
@[HNFMS__viston](/space/show?uid=107101) 误导新人最好玩了QWQ(实际上我也不会)
by Viston @ 2018-08-22 19:16:50
@[HNFMS__viston](/space/show?uid=107101) 我是说楼主 ~~可能有你~~
by Sirius_X @ 2018-08-22 20:17:11
~~普通并查集不是很难~~ 带权并查集我也不会
by Sirius_X @ 2018-08-22 20:18:31
我刚入门,什么都不会
by 正式AFO @ 2018-08-22 22:39:04
@[HNFMS__viston](/space/show?uid=107101) 劳烦解释一下行吗?谢谢。
by 正式AFO @ 2018-08-22 22:40:03
@[HNFMS__viston](/space/show?uid=107101) 不用了,谢谢。
by 正式AFO @ 2018-08-22 22:41:33