728x90 우선순위큐1 [백준] 11000 - 강의실 배정 Python https://www.acmicpc.net/problem/11000 11000번: 강의실 배정 첫 번째 줄에 N이 주어진다. (1 ≤ N ≤ 200,000) 이후 N개의 줄에 Si, Ti가 주어진다. (0 ≤ Si < Ti ≤ 109) www.acmicpc.net import heapq import sys input = sys.stdin.readline N = int(input()) course = list() answer = 1 for i in range(N): S, T = map(int, input().split()) course.append((S, T)) course.sort() classroom = list() heapq.heappush(classroom, course[0][1]) for i in.. 2023. 5. 22. 이전 1 다음 728x90