提交记录 22058


用户 题目 状态 得分 用时 内存 语言 代码长度
LEE114514 1003. 测测你的二分查找 Accepted 100 325.21 us 12 KB C++ 159 B
提交时间 评测时间
2024-07-30 19:47:21 2024-07-30 19:47:24
unsigned l,r,mid;
int binary_search(const unsigned *a, int n, unsigned x)
{
	l=0,r=n-1;
	while(l<r){
		mid=(l+r)>>1;
		a[mid]<x?l=mid+1:r=mid;
	}
	return r;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1325.21 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2025-07-15 11:58:33 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠