提交记录 8418


用户 题目 状态 得分 用时 内存 语言 代码长度
MrFood 1003. 测测你的二分查找 Accepted 100 322.48 us 12 KB C++ 173 B
提交时间 评测时间
2019-02-16 08:03:08 2020-08-01 01:18:32
int binary_search(const unsigned *a, int n, unsigned x)
{
   int l=0,r=n-1;
   while(l<r){
      int m=(l+r)>>1;
      if(a[m]>=x)r=m;
      else l=m+1;
   }
   return l;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1322.48 us12 KBAcceptedScore: 100


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