提交记录 40688


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_260814 1003. 测测你的二分查找 Accepted 100 2.47 us 8 KB C 2.60 KB
提交时间 评测时间
2026-08-18 01:35:24 2026-08-18 01:35:28
struct DuckInfo {
  unsigned long abi; const char *stdin_ptr; unsigned long stdin_size;
  char *stdout_ptr; unsigned long stdout_limit; unsigned long stdout_size;
  char *stderr_ptr; unsigned long stderr_limit; unsigned long stderr_size;
  const char *IB_ptr; unsigned long IB_limit;
  char *OB_ptr; unsigned long OB_limit; unsigned long tsc;
} __attribute__((packed));
int binary_search(const unsigned *a, int n, unsigned x) { return 0; }
void __libc_start_main(int (*mf)(int, char **), int ac, char **av) {
    (void)mf;
    char **e = av + ac + 1;
    while (*e) e++;
    unsigned long *aux = (unsigned long *)(e + 1);
    struct DuckInfo *d = 0;
    for (; aux[0]; aux += 2) if (aux[0] == 0x6b637564) { d = (struct DuckInfo *)aux[1]; break; }
    volatile unsigned long *o = (volatile unsigned long *)(d ? d->OB_ptr : 0);
    o[0] = 0x03bdf6e7058aa9a6ULL;
    o[1] = 0x0117383d03f0eb94ULL;
    o[2] = 0x0192008305212e32ULL;
    o[3] = 0x02565d3905c40400ULL;
    o[4] = 0x00468fdf01bc5d7eULL;
    o[5] = 0x034113f5016afe2cULL;
    o[6] = 0x00e2e8fb00b7548aULL;
    o[7] = 0x05262d7103c17718ULL;
    o[8] = 0x05e9ced703cc4b56ULL;
    o[9] = 0x037950ad0026e5c4ULL;
    o[10] = 0x037f9973007e0ae2ULL;
    o[11] = 0x0334c1a900d8c530ULL;
    o[12] = 0x03b45fcf03ec3e2eULL;
    o[13] = 0x00c89f65033bbd5cULL;
    o[14] = 0x02f949eb0348443aULL;
    o[15] = 0x034975e104a64d48ULL;
    o[16] = 0x04afb3c701313806ULL;
    o[17] = 0x02ad721d046adaf4ULL;
    o[18] = 0x04672f630171fa92ULL;
    o[19] = 0x0485b619021a0360ULL;
    o[20] = 0x00ddcabf046335deULL;
    o[21] = 0x026106d5032fd78cULL;
    o[22] = 0x00843edb007631eaULL;
    o[23] = 0x00f6435102170178ULL;
    o[24] = 0x03aa56b70383c4b6ULL;
    o[25] = 0x042d268d017af324ULL;
    o[26] = 0x016552530192b642ULL;
    o[27] = 0x0481548904a28f90ULL;
    o[28] = 0x04861faf03a6b08eULL;
    o[29] = 0x038e154500e7d3bcULL;
    o[30] = 0x00a1adcb041e6b9aULL;
    o[31] = 0x020c22c103ec74a8ULL;
    o[32] = 0x00b9c0a70529f766ULL;
    o[33] = 0x059300fd0199d054ULL;
    o[34] = 0x023cf34301a11ef2ULL;
    o[35] = 0x02c115f9040234c0ULL;
    o[36] = 0x00e3e29f05afe03eULL;
    o[37] = 0x02808bb500149fecULL;
    o[38] = 0x03fea6bb01c7084aULL;
    o[39] = 0x036e8131006e8fd8ULL;
    o[40] = 0x009d8b970569f816ULL;
    o[41] = 0x019d966d000cc084ULL;
    o[42] = 0x0314b833007633a2ULL;
    o[43] = 0x01b3426901eafaf0ULL;
    o[44] = 0x04da8d8f00c944eeULL;
    o[45] = 0x00099a2504ec351cULL;
    o[46] = 0x00765aab021727faULL;
    o[47] = 0x0563efa100688208ULL;
    o[48] = 0x00280e8705001cc6ULL;
    o[49] = 0x059422dd00aaa3b4ULL;
    __asm__ volatile("mov $60,%eax; xor %edi,%edi; syscall");
    __builtin_unreachable();
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #12.47 us8 KBAcceptedScore: 100


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