[백준/BOJ] 백준 9571번 : Crowded Cows
https://www.acmicpc.net/problem/9571 9571번: Crowded Cows Farmer John's N cows (1 xi >> hi; cow.push_back(make_pair(xi, hi)); } sort(cow.begin(), cow.end()); cow.push_back(make_pair(2000000005, 2000000005)); MakeSgmtt(0, 0, n - 1); int check_left_index = 0; int check_right_index = 0; for (int i = 0; i < n; i++) { //붐비는 소인지 확인할 소 int here = cow[i].first; int here_height = cow[i].second; //현재 위치의 왼..
2023.03.15