package 최단거리; import java.util.*; public class 파트_1238 { // 문제 요점 // 단일 경로 이기 때문에 // 집 -> X 경로 확인 // X -> 집 경로 확인 // 이 두개를 더해줘야한다. static int n,m,z; static int distance[]; static int distance2[]; static boolean check[]; static int INF = 999999; static ArrayList list; static ArrayList revlist; //단방향 static class Node implements Comparable{ int pos; int weight; public Node(int pos, int weight){ th..