正文
增加 1 行删除 1 行
40 行未改动41424344454647484922 行未改动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)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 行未改动40 行未改动41424344454647484922 行未改动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)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 行未改动