提交记录 601


用户 题目 状态 得分 用时 内存 语言 代码长度
sshockwave 1003. 测测你的二分查找 Accepted 100 324.94 us 12 KB C 215 B
提交时间 评测时间
2018-06-20 14:51:57 2020-07-31 20:40:44
int binary_search(const unsigned * const a, const int n, const unsigned x) {
	register unsigned l=0,r=n-1;
	do{
		register unsigned m=(l+r)>>1;
		if(a[m]<x){
			l=m+1;
		}else{
			r=m;
		}
	}while(l<r);
	return l;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1324.94 us12 KBAcceptedScore: 100


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