提交记录 670


用户 题目 状态 得分 用时 内存 语言 代码长度
fafa 1003. 测测你的二分查找 Wrong Answer 0 296.35 us 12 KB C 256 B
提交时间 评测时间
2018-06-20 15:23:51 2020-07-31 20:41:32
int binary_search(const unsigned *a, int n, register unsigned x) {
    register const unsigned *l = a, *r = a + n, *m;
    while (l + 1 < r) {
        m = (unsigned *)(((int)l + (int)r) >> 1);
        (*m > x) ? (r = m) : (l = m);
    }
    return l - a;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1296.35 us12 KBWrong AnswerScore: 0


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