We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c05979a commit 84094b1Copy full SHA for 84094b1
백준/Gold/1374. 강의실/README.md
@@ -4,15 +4,15 @@
4
5
### 성능 요약
6
7
-메모리: 48580 KB, 시간: 528 ms
+메모리: 48580 KB, 시간: 468 ms
8
9
### 분류
10
11
자료 구조, 그리디 알고리즘, 우선순위 큐, 정렬
12
13
### 제출 일자
14
15
-2025년 5월 15일 00:17:41
+2025년 5월 15일 00:19:02
16
17
### 문제 설명
18
백준/Gold/1374. 강의실/강의실.py
@@ -13,10 +13,10 @@
while start_heap:
start, end = heapq.heappop(start_heap)
- while end_heap and end_heap[0][0] <= start:
+ while end_heap and end_heap[0] <= start:
heapq.heappop(end_heap)
19
- heapq.heappush(end_heap, (end, start))
+ heapq.heappush(end_heap, end)
20
room = max(room, len(end_heap))
21
22
print(room)
0 commit comments