排序中边的优先级写错了 第17行 return x.w<y.w; 应改为 return x.w<y.w||(x.w==y.w&&x.col==0&&y.col==1); by Verdandi @ 2020-01-19 22:15:10