9 do RELAX(u, v, w) //鬆弛成功的結點會被加入到佇列中 ... adj[v].push_back(make_pair(u, wt)); } // 计算最短路 void shortestPath(vector<pair<int,int> > adj[], ...
確定! 回上一頁