提交记录 609
| 提交时间 |
评测时间 |
| 2018-06-20 14:54:57 |
2020-07-31 20:40:49 |
int binary_search(const unsigned * const a, const int n, register const unsigned x) {
register unsigned l=0,r=n-1;
do{
register const unsigned m=(l+r)>>1;
register const unsigned m2=((l+r)>>1)+1;
if(a[m]<x){
l=m2;
}else{
r=m;
}
}while(l<r);
return l;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 323.59 us | 12 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-26 07:31:40 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠