Skip to content

Conversation

@zinnnn37
Copy link
Contributor

@zinnnn37 zinnnn37 commented Oct 19, 2025

🧷 문제 링크

교수님은 기다리지 않는다

🧭 풀이 시간

70분

👀 체감 난이도

✏️ 문제 설명

!: ab의 무게 차이가 주어짐
?: ab의 무게가 얼마나 차이나는지 출력. 모르면 UNKNOWN
간접적으로 알 수 있는 경우에도 출력해야함
e.g. a, b의 대소 관계를 알고 b, c의 대소관계를 알고 있을 때 ac의 대소관계도 알 수 있음

🔍 풀이 방법

얼핏 보고 세그트리인가 했는데 연결 관계가 동적이라 불가능
가중치 있는 분리집합으로 풀었습니다

⏳ 회고

지금 보니 weightlong으로 선언해야 할 듯

@ShinHeeEul ShinHeeEul merged commit 587ea93 into main Oct 19, 2025
1 check passed
@zinnnn37 zinnnn37 added success 👍 해설을 보지 않고 풀었을 때 hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 labels Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants