Skip to content

Commit 84094b1

Browse files
committed
[Gold V] Title: 강의실, Time: 468 ms, Memory: 48580 KB -BaekjoonHub
1 parent c05979a commit 84094b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

백준/Gold/1374. 강의실/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
### 성능 요약
66

7-
메모리: 48580 KB, 시간: 528 ms
7+
메모리: 48580 KB, 시간: 468 ms
88

99
### 분류
1010

1111
자료 구조, 그리디 알고리즘, 우선순위 큐, 정렬
1212

1313
### 제출 일자
1414

15-
2025년 5월 15일 00:17:41
15+
2025년 5월 15일 00:19:02
1616

1717
### 문제 설명
1818

백준/Gold/1374. 강의실/강의실.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
while start_heap:
1414
start, end = heapq.heappop(start_heap)
1515

16-
while end_heap and end_heap[0][0] <= start:
16+
while end_heap and end_heap[0] <= start:
1717
heapq.heappop(end_heap)
1818

19-
heapq.heappush(end_heap, (end, start))
19+
heapq.heappush(end_heap, end)
2020
room = max(room, len(end_heap))
2121

2222
print(room)

0 commit comments

Comments
 (0)