回家

提醒两个点:

一.KM求的是权值和最大不是最小所以边权要取反

二.最后累加的是w[match[i]][i],不是match[i][match[i]]

posted @ 2024-08-24 13:55  最爱丁珰  阅读(18)  评论(0)    收藏  举报