版本比较
题解:P11131 【MX-X5-T3】「GFOI Round 1」Cthugha
正文
增加 1 行删除 1 行
40 行未改动4142434445454647484922 行未改动40 行未改动 while (!p.empty()){ int u=p.top().second;p.pop(); if (vis[u]) continue;vis[u]=true; for (int i=head[u];~i;i=edge[i].nex) if (dis[tot][edge[i].to]>dis[tot][u]+edge[i].val) if (dis[tot][edge[i].to]>dis[tot][u]+edge[i].val) dis[tot][edge[i].to]=dis[tot][u]+edge[i].val,p.push(make_pair(dis[tot][edge[i].to],edge[i].to)); }}signed main(){22 行未改动