提交记录 47251


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_codex_260812 noip17c. 【NOIP2017】逛公园 Wrong Answer 0 3.32 us 8 KB C 1.19 KB
提交时间 评测时间
2026-08-23 14:41:26 2026-08-23 14:41:29
typedef unsigned long U;
typedef struct {
    U abi_version;
    const char *stdin_ptr;
    U stdin_size;
    char *stdout_ptr;
    U stdout_limit, stdout_size;
    char *stderr_ptr;
    U stderr_limit, stderr_size;
    const char *ib_ptr;
    U ib_limit;
    char *ob_ptr;
    U ob_limit, tsc_frequency;
} __attribute__((packed)) D;

static char *putu(char *p, U x) {
    char b[32]; unsigned n = 0;
    do b[n++] = '0' + x % 10, x /= 10; while (x);
    while (n) *p++ = b[--n];
    return p;
}

__attribute__((noreturn))
void __libc_start_main(void *unused, long argc, char **argv) {
    (void)unused;
    char **p = argv + argc + 1;
    while (*p) ++p;
    U *a = (U *)(p + 1);
    while (a[0] != 0x6b637564UL) a += 2;
    D *d = (D *)a[1];
    char *o = d->stderr_ptr;
#define F(c, x) do { *o++ = c; *o++ = '='; o = putu(o, (U)(x)); *o++ = ' '; } while (0)
    F('A', d->abi_version); F('S', d->stdin_size); F('I', d->ib_limit);
    F('O', d->ob_limit); F('L', d->stdout_limit); F('E', d->stderr_limit);
    *o++ = '\n'; d->stderr_size = o - d->stderr_ptr;
    __asm__ volatile("mov $60,%%eax;xor %%edi,%%edi;syscall" ::: "rax", "rdi", "rcx", "r11", "memory");
    __builtin_unreachable();
}
int main(void) {}

CompilationN/AN/ACompile OKScore: N/A

Testcase #12.89 us8 KBWrong AnswerScore: 0

Testcase #22.34 us8 KBWrong AnswerScore: 0

Testcase #32.54 us8 KBWrong AnswerScore: 0

Testcase #42.41 us8 KBWrong AnswerScore: 0

Testcase #52.5 us8 KBWrong AnswerScore: 0

Testcase #62.56 us8 KBWrong AnswerScore: 0

Testcase #72.65 us8 KBWrong AnswerScore: 0

Testcase #83.11 us8 KBWrong AnswerScore: 0

Testcase #93.32 us8 KBWrong AnswerScore: 0

Testcase #102.36 us8 KBWrong AnswerScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-08-27 02:35:33 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠