题目有重边
取minminmin
以邻接矩阵为例:
//86分 f[x][y]=z; f[y][x]=z;
//100分 f[x][y]=min(f[x][y],z); f[y][x]=min(f[y][x],z);