题目描述 You are given a weighed undirected connected graph, consisting of n vertices and mm edges. You should answer q queries, the i-th query is to find the shortest distance between vertices ui and vi. Input The first line contains two integers n and…