Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Jul 1, 2025

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

N명의 플레이어가 서로 다른 카드를 뽑고 그 카드로 1:1 대결을 함.
대결은 서로 나누었을 때, 상대를 나머지 없이 나눌 수 있으면 +1을 얻고 나누어진 상대는 -1의 점수를 가짐. 서로 나눌 수 없다면 점수 변화 x
모두 서로 한번씩 대결은 마쳤을 때, 모든 플레이어의 최종 점수를 출력.

🔍 풀이 방법

에라토스테네스의 체

⏳ 회고

N이 100000이라서 이분탐색을 생각했지만 가능은 하나, 이 방법이 더 효율적.

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