有一个 n个点m𝑛𝑛个点 𝑚条边的无向图,请求出从 𝑠s到 t 𝑡的最短路长度。#include <bits/stdc++.h> using namespace std; int numNodes, numEdges, sourceNode, targetNode; vector<bool> visited(1000000, false); struct Edge { int to, weight, next = -1; } graph[1000000]; vector<int> head(1000000, -1), distanceTo(10...