1920번 수 찾기 문제풀이 #include #include using namespace std; void getResult(int n, int input, int *arr) { int low = 0, high = n, mid; while (low n; int arr[n] = { 0, }; for (int i = 0; i > arr[i]; } sort(arr, arr + n); cin >> m; for (int i = 0; i > input; getResult(n, input, arr); } } 이분탐색으로 짜기전에 그냥 결과나오게 했었는데 시간초과떠서 이분탐색 공부하고 했다.