提交记录 1089


用户 题目 状态 得分 用时 内存 语言 代码长度
Xeonacid 1003. 测测你的二分查找 Accepted 100 324.01 us 12 KB C 207 B
提交时间 评测时间
2018-06-20 20:25:49 2020-07-31 20:46:34
int binary_search(const unsigned *a, register const int n, register const unsigned x){
	register int l=0,r=n-1;
	do
	{
		register int mid=(l+r)>>1;
		a[mid]<x?(l=mid+1):(r=mid);
	}
	while(l!=r);
	return l;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1324.01 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-05-08 03:14:08 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用