Kruskal WA 八个 求找错

P3366 【模板】最小生成树

rp++
by dzelwj @ 2016-11-18 19:18:19


#rp++
by dzelwj @ 2016-11-18 19:18:51


#**RP++**
by __世界第一弱__ @ 2016-11-18 19:33:38


father[r2]=r1;(怎么又是这么低级的错误,改成father[find(r1)]=find(r2);)
by Ghost_lzy @ 2016-11-18 20:14:06


还有 你没输出orz 而且 ```cpp void unionn(int x,int y) { x=find(x);y=find(y); father[y]=x; } ```
by ars4me @ 2017-04-12 21:06:07


|