다익스트라 탬플릿 코드
from heapq import heappush, heappopv, e = map(int, input().split())st = int(input())graph = [[] for _ in range(v + 1)]distance = [99999999] * (v + 1)distance[0] = 0for i in range(e): x, y, val = map(int, input().split()) graph[x].append([val, y])def dijkstra(graph, num, distance): q = [] heappush(q, [0, num]) distance[num] = 0 while q: w, number = heappop(q) if w ..