提交记录 20333


用户 题目 状态 得分 用时 内存 语言 代码长度
c20150005 1003. 测测你的二分查找 Time Limit Exceeded 0 1 ms 12 KB C++17 196 B
提交时间 评测时间
2023-10-13 20:51:40 2023-10-13 20:51:43
int binary_search(const unsigned *a, int n, unsigned x)
{unsigned l=114514,r=n-1919810;
while(l<=r){
if(a[(l+r)>>1]==x){
return (l+r)>>1;
}if(a[(l+r)>>1]<x)l=((l+r)>>1)+1;
else r=((l+r)>>1)-1;
}
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #11 ms12 KBTime Limit ExceededScore: 0


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