Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

친구의 친구는 친구일 때, 준석이가 가장 비용으로 모든 사람과 친구가 되는 최소비용 구하기

🔍 풀이 방법

union-find 를 사용해서 친구비가 가장 적은 친구를 선택해서 해당 친구로 연결된 친구들의 parent를 바꿔줌
parent는 친구비가 가장 작은 친구의 index로 초기화

⏳ 회고

알고리즘..하기 실타

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