提交记录 3549


用户 题目 状态 得分 用时 内存 语言 代码长度
zengminghao 1003. 测测你的二分查找 Accepted 100 322.31 us 12 KB C++ 157 B
提交时间 评测时间
2018-07-16 14:28:32 2020-07-31 21:19:34
int binary_search(const unsigned *a,int n,unsigned x){int L=1,R=n,ans=-1;while(L<=R){int mid=(L+R)>>1;if(a[mid]<x) L=mid+1;else R=mid-1,ans=mid;}return ans;}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1322.31 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-05-07 19:32:48 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用