提交记录 17619


用户 题目 状态 得分 用时 内存 语言 代码长度
kpeaker 1003. 测测你的二分查找 Memory Limit Exceeded 0 353.07 us 36 KB C++ 205 B
提交时间 评测时间
2022-04-02 22:29:11 2022-04-02 22:29:15
#include<bits/stdc++.h>
int binary_search(const unsigned *a, int n, unsigned x)
{
	int l=1;n--;
while(l<=n){
int mid=(l+n)/2;
if(a[mid]>x)
n=mid-1;
else if(a[mid]<x)
l=mid+1;
else return mid;
}
return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1353.07 us36 KBMemory Limit ExceededScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-17 05:33:15 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠