Skip to content

Conversation

@suyeun84
Copy link
Contributor

@suyeun84 suyeun84 commented Aug 1, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/14284

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

정점 n개, m개의 간선으로 이루어진 무방향 그래프가 주어짐
이때, 정점 s와 t가 연결 되는 시점의 간선ㅇ늬 가중치의 합 최솟값 구하기

🔍 풀이 방법

다익스트라 사용
priorityqueue를 사용해서 연결되어 있는 정점들에서 갈 수 있는 간선들을 우선순위큐에 넣고,
우선순위 큐는 가중치가 작은 순서로 정렬을 해서 연결

⏳ 회고

전형적인 다익스트라 문제다.
근데 이제 오랜만에 풀어서 헷갈린..

@suyeun84 suyeun84 self-assigned this Aug 1, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Aug 1, 2025
@ShinHeeEul ShinHeeEul merged commit 163fd0c into main Aug 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants