提交记录 20320


用户 题目 状态 得分 用时 内存 语言 代码长度
c20150005 1003. 测测你的二分查找 Memory Limit Exceeded 0 357.37 us 36 KB C++17 220 B
提交时间 评测时间
2023-10-13 20:43:10 2023-10-13 20:43:14
#include<bits/stdc++.h>
using namespace std;
int binary_search(const unsigned *a, int n, unsigned x)
{
	int l=1,r=n,ans=0;
while(l<=r){
int mid=(l+r)>>1;
if(a[mid]==x){
return mid;
}if(a[mid]<x)l=mid+1;
else r=mid-1;
}
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1357.37 us36 KBMemory Limit ExceededScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2025-09-13 11:32:12 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠