Skip to content

Conversation

@Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Nov 27, 2025

🧷 문제 링크

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

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

N개의 강의가 주어지고,
각 강의의 시작/종료 시간이 주어진다. 모든 강의를 진행하기 위해 필요한 최소 강의실 개수를 구하는 문제.

🔍 풀이 방법

그리디 + 우선순위 큐
강의를 시작 시간 기준 오름차순 정렬, 우선순위 큐에 현재 사용 중인 강의실들의 종료 시간을 저장
최종 크기가 필요한 최소 강의실 수

시작 시간 순으로 처리하면서, 재사용 가능한 강의실 중 가장 빨리 끝나는 것을 그리디하게 선택

⏳ 회고

전형적인 회의실 문제

@Seol-JY Seol-JY added the success 👍 해설을 보지 않고 풀었을 때 label Nov 27, 2025
@ShinHeeEul ShinHeeEul merged commit 7e55292 into main Nov 27, 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