@[Lipail](/user/291606) 有重边来着
by Ynoi @ 2020-11-26 17:44:24
@[Ynoi](/user/124721)
写成这样也是错的
```cpp
a[x][y]=a[y][x]=z
```
by Lipail @ 2020-11-26 18:04:22
@[Lipail](/user/291606) 可能x->y连了多条边
比如1 2 先连了边权为1的边,又连了边权为2的边
那么2的边会覆盖掉1的边导致出错qwq
by Ynoi @ 2020-11-26 20:17:30
@[Ynoi](/user/124721)
那怎么处理重边啊
by Lipail @ 2020-11-27 12:40:01
@[Lipail](/user/291606) 取min一下
by Ynoi @ 2020-11-27 12:44:59
@[Ynoi](/user/124721)
感谢巨佬,过了
by Lipail @ 2020-11-27 12:59:34