提交记录 47301


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_codex_260812 noip17a. 【NOIP2017】小凯的疑惑 Accepted 100 2.74 us 8 KB C 1.04 KB
提交时间 评测时间
2026-08-23 14:54:05 2026-08-23 14:54:12
typedef unsigned long U;

static __attribute__((always_inline)) inline U read(U **q) {
    unsigned char *p = (unsigned char *)*q;
    U x = 0;
    do x = x * 10 + *p++ - '0'; while ((unsigned)(*p - '0') <= 9);
    *q = (U *)p;
    return x;
}

__attribute__((noreturn))
void __libc_start_main(void *unused, U argc, char **argv) {
    (void)unused; (void)argc;
    U *d = (U *)((U *)argv)[29];
    unsigned char *p = (unsigned char *)(U)d[1];
    U a = 0, b = 0;
    do a = a * 10 + *p++ - '0'; while ((unsigned)(*p - '0') <= 9);
    ++p;
    do b = b * 10 + *p++ - '0'; while ((unsigned)(*p - '0') <= 9);
    U x = a * b - a - b;
    char tmp[24], *q = tmp + sizeof(tmp), *end = q;
    do { U y = x / 10; *--q = (char)('0' + x - y * 10); x = y; } while (x);
    char *out = (char *)(U)d[3];
    U n = (U)(end - q);
    __builtin_memcpy(out, q, n);
    out[n] = '\n';
    d[5] = n + 1;
    __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.74 us8 KBAcceptedScore: 5

Testcase #22.21 us8 KBAcceptedScore: 5

Testcase #32.29 us8 KBAcceptedScore: 5

Testcase #42.27 us8 KBAcceptedScore: 5

Testcase #52.64 us8 KBAcceptedScore: 5

Testcase #62.24 us8 KBAcceptedScore: 5

Testcase #72.6 us8 KBAcceptedScore: 5

Testcase #82.26 us8 KBAcceptedScore: 5

Testcase #92.25 us8 KBAcceptedScore: 5

Testcase #102.24 us8 KBAcceptedScore: 5

Testcase #112.24 us8 KBAcceptedScore: 5

Testcase #122.61 us8 KBAcceptedScore: 5

Testcase #132.33 us8 KBAcceptedScore: 5

Testcase #142.29 us8 KBAcceptedScore: 5

Testcase #152.62 us8 KBAcceptedScore: 5

Testcase #162.32 us8 KBAcceptedScore: 5

Testcase #172.26 us8 KBAcceptedScore: 5

Testcase #182.63 us8 KBAcceptedScore: 5

Testcase #192.62 us8 KBAcceptedScore: 5

Testcase #202.62 us8 KBAcceptedScore: 5


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