提交记录 426


用户 题目 状态 得分 用时 内存 语言 代码长度
thirtiseven 1003. 测测你的二分查找 Accepted 100 320.93 us 12 KB C 223 B
提交时间 评测时间
2018-06-20 13:38:47 2020-07-31 20:38:45
#pragma GCC optimize(3)

int binary_search(const unsigned *a, register int n, unsigned x)
{
	register int l = 0;
	register int m;
	n--;
	while (l < n)
	{
		m = (l + n) >> 1;
		if(a[m] < x)l=m+1;
		else n=m;
	}
	return l;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1320.93 us12 KBAcceptedScore: 100


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