提交记录 30401
| 提交时间 |
评测时间 |
| 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();
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 2.9 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 13:41:01 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠