提交记录 5678


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

CompilationN/AN/ACompile OKScore: N/A

Testcase #1324.01 us12 KBAcceptedScore: 100


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