提交记录 31287


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_260814 1003. 测测你的二分查找 Wrong Answer 0 7.27 us 12 KB C 153 B
提交时间 评测时间
2026-08-14 01:18:23 2026-08-14 01:18:26
int binary_search(const unsigned *a, int n, unsigned x)
{
    unsigned a0 = a[0], a1 = a[1];
    unsigned d = a1 - a0;
    return (int)((x - a0) / d);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #17.27 us12 KBWrong AnswerScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 09:35:37 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠