提交记录 17618


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

CompilationN/AN/ACompile OKScore: N/A

Testcase #1353.73 us36 KBMemory Limit ExceededScore: 0


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