입력 코드 #include int findMax(int queue[], int N, int front, int rear){ int M = queue[front], index = 0; for (int i = front + 1; i
입력 코드 #include #include typedef struct { int x; int y; } point; point sort[100001]; void merge(point* arr, int first, int mid, int last) { int i, j, k; i = first; j = mid + 1; k = first; while (i arr[j].y) sort[k++] = arr[j++]; } } if (i