Skip to content

Conversation

@JHLEE325
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

강의의 시작시간, 종료시간이 주어졌을 때
최소한의 강의실 개수로 강의를 모두 마칠 수 있는 강의실의 개수를 구하는 문제입니다.

🔍 풀이 방법

강의실 클래스를 만들어서 pq를 이용했습니다.
우선 시작순으로 정렬한 후 다음 강의가 현재 강의가 끝나는 시간보다 빨리 시작하면 강의실이 1개 더 필요한 것으로 쳤습니다.

⏳ 회고

기본적인 그리딩비니다

@ShinHeeEul ShinHeeEul merged commit a782d5f 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants