Skip to content

Conversation

@llIllIllIllIllIllIllIllI
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

35분

👀 체감 난이도

✏️ 문제 설명

M개의 우주가 있고 각 우주에 N개의 행성이 있을 때, 균등한 우주 쌍의 개수를 구하는 문제
두 우주가 균등하다는 것은 모든 행성 쌍의 대소관계가 동일하다는 의미

🔍 풀이 방법

좌표압축을 활용
각 우주의 행성 크기를 상대적 순위(rank)로 변환하면, 균등한 우주는 동일한 rank 배열을 가진다

⏳ 회고

좌표압축을 생각못할뻔

@llIllIllIllIllIllIllIllI llIllIllIllIllIllIllIllI added the success 👍 해설을 보지 않고 풀었을 때 label Dec 16, 2025
@ShinHeeEul ShinHeeEul merged commit 30ba354 into main Dec 16, 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