提交记录 15106


用户 题目 状态 得分 用时 内存 语言 代码长度
lny 1003. 测测你的二分查找 Accepted 100 329.07 us 12 KB C++ 178 B
提交时间 评测时间
2020-11-25 10:59:14 2020-11-25 10:59:18
int binary_search(const unsigned *a, int n, unsigned x)
{
unsigned *p=(unsigned*)(a)+n;
	for(int i = 1<<26; i ; i>>=1){
unsigned *q=p-i;
		if(q>= a&&(x<=*q))p=q;
}
	return p-a;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1329.07 us12 KBAcceptedScore: 100


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