Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Jun 30, 2025

🧷 문제 링크

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

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

n개의 점을 m번 선분으로 이음.
이때 사이클이 처음 생기는 차례를 출력

🔍 풀이 방법

분리 집합

⏳ 회고

말만 번지르르하고 그냥 분리집합이었음.
이어진 선분을 다시 잇는 경우 분리집합으로 안풀리는 경우를 고려해서 좀 깊게 생각했는데 문제 조건에 이어진 선분은 다시 안 잇는다고 되어있었음. 문제를 잘 읽자.

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