Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

PD들이 정한 순서를 모두 지키면서, 전체 가수의 순서를 정하기

🔍 풀이 방법

각 가수마다 이전 순서로 불러야하는 가수의 수를 cnt배열에 저장해둔다.
cnt가 0이면 해당 가수를 answer에 추가해주고, 다음 순서의 가수들의 cnt값을 1씩 줄인다.
answer의 값이 N이면 출력하고, 안되면 0 출력한다.

⏳ 회고

조금 헤맸다.....

@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Mar 19, 2025
@ShinHeeEul ShinHeeEul merged commit 49b0be0 into main Mar 19, 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