You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
문제 링크
https://www.acmicpc.net/problem/1916
문제 조건
아이디어
버스 비용은 모두 0 이상이고, 시작점과 도착점이 주어지므로 다익스트라 알고리즘을 적용하면 최단거리를 구할 수 있다.
최단 거리의 특성
시간 복잡도
O(E logV)이므로 시간 안 풀이가 가능하다.
구현
Beta Was this translation helpful? Give feedback.
All reactions