- 博客(1)
- 收藏
- 关注
原创 P2249 【深基13.例1】查找
这道题使用二分查找 #include<bits/stdc++.h> using namespace std; const int maxn = 1000010; int a[maxn] = {0}; //排序函数 bool cmp(int a, int b){ return a < b; } //二分查找 int search(int A[], int left , int right, int x){ int mid; while(left < right).
2021-10-28 11:10:29
1009
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人