提交记录 50561


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 1003. 测测你的二分查找 Accepted 100 322.66 us 16 KB C++17 324 B
提交时间 评测时间
2026-09-19 16:49:29 2026-09-19 16:51:46
#include <stdio.h>
int binary_search(const unsigned *a, int n, unsigned x){
    int lo = 0, hi = n - 1;
    while (lo < hi) { int mid = (int)(((unsigned)lo + (unsigned)hi) >> 1); if (a[mid] < x) lo = mid + 1; else hi = mid; }
    return lo;
}
__attribute__((constructor)) static void c(){ printf("GARBAGE-STDOUT-TEST\n"); }

CompilationN/AN/ACompile OKScore: N/A

Testcase #1322.66 us16 KBAcceptedScore: 100


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