* 다익스트라 static int Dijkstra(int s, int e) { PriorityQueue pq = new PriorityQueye(); Arrays.fill(D, Integer.MAX_VALUE); Node cu = new Node(s, 0); pq.add(cu); while(!pq.isEmpty()){ cu = pq.poll; if(cu.e == e) return cu.c; for(Node nd : list[cu.e]) { if(D[nd.e] > cu.c + nd.c) { D[nd.e] = cu.c + nd.c; pq.add(new Node(nd.e, (cu.c+nd.c) ); } } } return -1; } * 조합 (nCr) static int nCr(int n, int k) { i..