알고리즘 - 그리디
1931 - 회의실 배정#include #include using namespace std;int st[1000000];int ed[1000000];// 종료 시간 기준 정렬 but 같으면 시작 시간 기준 정렬bool compare(int i, int j) { if (ed[i] == ed[j]) { return st[i] > n; int list[1000000]; for (int i = 0; i > st[i] >> ed[i]; list[i] = i; } // 회의 리스트를 종료 시간 기준으로 정렬 sort(list, list + n, compare); int count = 0; int last = 0; // **겹치지 않는 작업**..