www.acmicpc.net/problem/1504 1504번: 특정한 최단 경로 첫째 줄에 정점의 개수 N과 간선의 개수 E가 주어진다. (2 ≤ N ≤ 800, 0 ≤ E ≤ 200,000) 둘째 줄부터 E개의 줄에 걸쳐서 세 개의 정수 a, b, c가 주어지는데, a번 정점에서 b번 정점까지 양방향 길이 존 www.acmicpc.net import sys input = sys.stdin.readline from heapq import heappop, heappush N, E = map(int, input().split()) link_arr = [list() for _ in range(N + 1)] for _ in range(E): n1, n2, w = map(int, input().split()) ..