提交记录 9221


用户 题目 状态 得分 用时 内存 语言 代码长度
LMOliver 1003. 测测你的二分查找 Time Limit Exceeded 0 1 ms 8 KB C++ 183 B
提交时间 评测时间
2019-04-20 10:00:55 2020-08-01 01:34:26
int binary_search(const unsigned *a, int n, unsigned x)
{const unsigned *l=a,*r=a+n;
while(true){
const unsigned *m=l+((r-l)>>1);
if(*m==x)return m-a;
if(*m>x) l=m+1;
else r=m-1;
}
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #11 ms8 KBTime Limit ExceededScore: 0


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