提交记录 5679


用户 题目 状态 得分 用时 内存 语言 代码长度
hehe12301 1003. 测测你的二分查找 Accepted 100 734.48 us 12 KB C++ 219 B
提交时间 评测时间
2018-09-01 20:47:15 2020-08-01 00:21:33
unsigned rd()
{
	static unsigned x=471;
	return x=48271ll*x+1;
}
int binary_search(const unsigned *a, int n, unsigned x)
{
	const unsigned *l=a,*r=a+n,*mid;
	while(l+1<r)	(*(mid=l+rd()%(r-l))<=x?l:r)=mid;
	return l-a;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1734.48 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-04-11 11:55:13 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠