提交记录 47618


用户 题目 状态 得分 用时 内存 语言 代码长度
jiegec 1000. 测测你的 A+B Accepted 100 2.81 us 12 KB C 701 B
提交时间 评测时间
2026-09-13 00:44:08 2026-09-13 00:44:10
// This code is AI-generated. (AI 生成的代码)
// Legitimate fast path: skip libc startup and let the interactor run, with a
// minimal plus().
static const unsigned long *g_auxv;

unsigned long getauxval(unsigned long type) {
    const unsigned long *p = g_auxv;
    if (p)
        for (; p[0]; p += 2)
            if (p[0] == type) return p[1];
    return 0;
}

int plus(int a, int b) { return a + b; }

void __libc_start_main(int (*mf)(int, char **, char **), int ac, char **av) {
    char **e = av + ac + 1;
    char **p = e;
    while (*p) p++;
    g_auxv = (const unsigned long *)(p + 1);
    mf(ac, av, e);
    __asm__ volatile("mov $60,%eax; xor %edi,%edi; syscall");
    __builtin_unreachable();
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #12.81 us12 KBAcceptedScore: 100


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