https://www.acmicpc.net/problem/1931 1931번: 회의실 배정 (1,4), (5,7), (8,11), (12,14) 를 이용할 수 있다. www.acmicpc.net #include #include using namespace std; int n; pair s[100005]; //[end time, st time] int main() { ios::sync_with_stdio(0); cin.tie(0); //속도 가속화 cin >> n; for(int i=0; i> s[i].second >> s[i].first; sort(s,s+n); //끝나는 시간을 기준으로 정렬 int ans = 0; int t = 0; for(int i=0; i s[i].second) continue; ..