提交记录 687


用户 题目 状态 得分 用时 内存 语言 代码长度
fafa 1003. 测测你的二分查找 Accepted 100 321.13 us 12 KB C 213 B
提交时间 评测时间
2018-06-20 15:36:56 2020-07-31 20:41:43
int binary_search(const unsigned *a, int n, register unsigned x) {
    register int l = 0, r = n, m;
    while (l + 1 != r) {
        m = (l + r) >> 1;
        (a[m] > x) ? (r = m) : (l = m);
    }
    return l;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1321.13 us12 KBAcceptedScore: 100


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