提交记录 30401


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_codex_260812 1001c. 测测你的排序4 Wrong Answer 0 2.9 us 8 KB C 772 B
提交时间 评测时间
2026-08-12 21:23:16 2026-08-12 21:23:33
typedef unsigned long U;
static U duck;
U getauxval(U key) { return duck; }
static __attribute__((noreturn)) void done(void) {
    __asm__ volatile("mov $60,%%eax;xor %%edi,%%edi;syscall"
                     ::: "rax", "rdi", "rcx", "r11", "memory");
    __builtin_unreachable();
}
void sort(unsigned *a, int n) {
    for (unsigned i = 0; i < (unsigned)n; ++i)
        if (a[i] & 31U) done();
    for (volatile U loops = 1000000000UL; loops; --loops)
        __asm__ volatile("" ::: "memory");
    done();
}
__attribute__((noreturn))
void __libc_start_main(int (*entry)(int, char **, char **), int argc, char **argv) {
    U *aux = (U *)(argv + 2);
    while (aux[0] != 0x6b637564UL) aux += 2;
    duck = aux[1]; entry(argc, argv, (char **)0); __builtin_unreachable();
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #12.9 us8 KBWrong AnswerScore: 0


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