提交记录 3316


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

CompilationN/AN/ACompile OKScore: N/A

Testcase #1321.26 us12 KBAcceptedScore: 100


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