测试用例3 31 2 33 4 54 3 6目标答案:19最短路问题考虑使用dijkstra import java.io.StreamTokenizer; import java.util.ArrayList; import java.util.Arrays; import java.util.PriorityQueue; public class mt2 { static int n,m; static StreamTokenizer stk = new StreamTokenizer(new java.io.BufferedReader(new java.io.Inpu...