Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

건물 개수 N개와 도로 개수 M개가 주어질 때,
최단 예산으로 모든 건물을 잇는 도로를 만들 때, 얼마를 절약할 수 있는지 구하기

🔍 풀이 방법

다익스트라 써서 PriorityQueue로 가장 cost가 적은 도로 선택해서 연결함

⏳ 회고

다익스트라 으릅다

@suyeun84 suyeun84 self-assigned this Aug 22, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Aug 22, 2025
@ShinHeeEul ShinHeeEul merged commit dc6cea2 into main Aug 22, 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