#include <iostream> #include <queue> #include <vector> using namespace std; const int N = 1010, INF = 0x3f3f3f3f; int n, m; int dis[N],cost[N], path[N]; struct Edge{ int to; int len; int cos; }; struct Point{ int index; int weight; Point(int i, int w): i...