提交记录 878


用户 题目 状态 得分 用时 内存 语言 代码长度
OoXoxoXoO 1003. 测测你的二分查找 Accepted 100 321.31 us 12 KB C 330 B
提交时间 评测时间
2018-06-20 17:28:33 2020-07-31 20:43:58
int binary_search(const unsigned *a, int n, unsigned value)
{const unsigned *it,*beg;int step;
beg=a;
    while (n > 0) {
        it = a; 
        step = n / 2; 
        it += step;
        if (*it < value) {
            a = ++it; 
            n -= step + 1; 
        }
        else
            n = step;
    }
    return a-beg;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1321.31 us12 KBAcceptedScore: 100


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