提交记录 18038


用户 题目 状态 得分 用时 内存 语言 代码长度
Avada 1003. 测测你的二分查找 Accepted 100 319.48 us 12 KB C++ 167 B
提交时间 评测时间
2022-09-09 10:24:34 2022-09-09 10:24:37
int binary_search(const unsigned *a,int r,unsigned x){
	int l=0,m;
	--r;
	if(a[r]==x)return r;
	while(l+1!=r){
		m=(l+r)>>1;
		if(a[m]>x)r=m;
		else l=m;
	}return l;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1319.48 us12 KBAcceptedScore: 100


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