[SWEA][Python] 5250 최소 비용 가중치가 있는 2차원 배열의 최소거리를 구하는 문제로 다익스트라를 사용했씁니다. from heapq import heappush, heappop def dijkstra(x, y): heap = [] dists[x][y] = 0 heappush(heap, (0, 0, 0)) while heap: cur_dist, x, y = heappop(heap) for dx, dy in delta: nx, ny = x + dx, y + dy if 0 practivceAlgorithm/swexpertacademy 2021.10.10