提交记录 6575


用户 题目 状态 得分 用时 内存 语言 代码长度
ytx 1003. 测测你的二分查找 Accepted 100 322.13 us 12 KB C++ 163 B
提交时间 评测时间
2018-10-28 17:42:52 2020-08-01 00:46:09
int binary_search(const unsigned *a,int n,unsigned x){
	unsigned L=1,R=n,mdl;
	while (L<R){
		mdl=(L+R)>>1;
		if (x<=a[mdl]) R=mdl;
		else L=mdl+1;
	}
	return L;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1322.13 us12 KBAcceptedScore: 100


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