第一题 无向图中两点的最短距离 用的DFS,过了90 def first(): n, p = map(int, input().strip().split(' ')) cost = [[101] * n for _ in range(n)] for _ in range(p): x, y, t = map(int, input().strip().split(' ')) cost[x][y] = t cost[y][x] = t end = int(input()...