[백준] 9370번 미확인 도착지
import heapq T = int(input()) INF = int(1e9) def dijkstra(start): distance = [INF] * (n+1) q = [] heapq.heappush(q, (0, start)) distance[start] = 0 while q: cost, dist = heapq.heappop(q) if distance[dist] tmp: distance[d] = tmp heapq.heappush(q, (tmp, d)) return distance for _ in range(T): n, m, t = map(int, input().split(..
코딩테스트 대비
2022. 3. 7. 14:53
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- CUDA
- BFS
- matplotlib
- 백트래킹
- numpy
- tensorflow
- 동적프로그래밍
- 코딩테스트
- 프로그래머스
- torchscript
- Python
- 이것이코딩테스트다
- 최소신장트리
- pytorch
- dfs
- notfound
- n과m
- version
- 설치하기
- torch
- docker
- 설치
- PIP
- shellscript
- 카카오
- error
- 파이썬
- 백준
- LGSVL
- 다익스트라
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함