对不起我只会Kruscal......
by yangrunze @ 2020-02-12 20:16:03
~~对不起我只会Kruscal......~~
by _Freedom_ @ 2020-02-12 20:18:31
这题有重边
```cpp
g[a][b]=g[b][a]=c;
改成
g[a][b] = g[b][a] = min(g[a][b], c);
```
@[yiyangit](/user/115533)
by YZL11111 @ 2020-02-12 20:36:35
@[YZL11111](/user/226316) 谢谢
by Locklink @ 2020-02-12 20:38:23
本来我是用 Prim,后来学了 Kruskal 觉得这个更简单就弃了 Prim。
by Hexarhy @ 2020-02-12 20:39:47