로딩
요청 처리 중입니다...

[백준 BOJ 10816번] 숫자 카드 2 (C++ )

 [백준 BOJ 10816번] 숫자 카드 2 (C++ )

#include #include using namespace std; int find_result(int* arr1,int find_num,int start,int end) { int count = 0; int tmp; while (start <= end) { int mid = (start + end)/2; if (arr1[mid] == find_num) { count++; tmp = mid+1; while (tmp find_num) end = mid - 1; else start=mid+1; } return (0); } int main() { ios ::sync_...