提交记录 404


用户 题目 状态 得分 用时 内存 语言 代码长度
q234rty 1003. 测测你的二分查找 Accepted 100 322.24 us 12 KB C 165 B
提交时间 评测时间
2018-06-20 13:32:18 2020-07-31 20:38:33
int binary_search(const unsigned *a, int n, unsigned x){
	int l=0,r=n-1;
	while(l<r){
		int mid=(l+r)>>1;
		if (a[mid]>=x)
			r=mid;
		else l=mid+1;
	}
	return l;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1322.24 us12 KBAcceptedScore: 100


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