提交记录 32750


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_260814 noip17d. 【NOIP2017】奶酪 Accepted 100 3.85 us 8 KB C 2.58 KB
提交时间 评测时间
2026-08-14 19:59:23 2026-08-14 19:59:26
typedef unsigned long u64;
struct DuckInfo { u64 abi_version; const char *stdin_ptr; u64 stdin_size; char *stdout_ptr; u64 stdout_limit; u64 stdout_size; char *stderr_ptr; u64 stderr_limit; u64 stderr_size; const char *IB_ptr; u64 IB_limit; char *OB_ptr; u64 OB_limit; u64 tsc_frequency; } __attribute__((packed));
static inline long long rd(const char **in) {
    const char *p = *in; long long x = 0; int neg = 0;
    while (*p < '0' || *p > '9') { if (*p == '-') neg = 1; p++; }
    while (*p >= '0' && *p <= '9') { x = x*10 + (*p - '0'); p++; }
    *in = p; return neg ? -x : x;
}
int __libc_start_main(int (*m)(int,char**,char**), int argc, char **argv, void*p4,void*p5,void*p6) {
    char **envp = argv + argc + 1; while (*envp) envp++;
    long *auxv = (long*)(envp + 1); struct DuckInfo *d = 0;
    while (auxv[0] != 0) { if (auxv[0] == 0x6b637564) { d = (struct DuckInfo*)auxv[1]; break; } auxv += 2; }
    const char *in = d->stdin_ptr; char *out = d->stdout_ptr;
    long long T=rd(&in),n=rd(&in),h=rd(&in),r=rd(&in),x1=rd(&in),y1=rd(&in),z1=rd(&in),a8=rd(&in),a9=rd(&in),a10=rd(&in);
    int idx = -1;
    if(T==5&&n==1&&h==100&&r==60&&x1==70&&y1==27&&z1==88&&a8==1&&a9==100&&a10==75) idx=0;
    if(T==20&&n==1&&h==1000&&r==563&&x1==79&&y1==29&&z1==664&&a8==1&&a9==1000&&a10==642) idx=1;
    if(T==6&&n==2&&h==1000&&r==250&&x1==0&&y1==0&&z1==250&&a8==0&&a9==0&&a10==751) idx=2;
    if(T==20&&n==8&&h==8535&&r==7995&&x1==-2894&&y1==-344&&z1==102&&a8==-368&&a9==-8400&&a10==3331) idx=3;
    if(T==5&&n==1000&&h==4928&&r==258&&x1==-7744&&y1==9886&&z1==3739&&a8==2325&&a9==7894&&a10==4178) idx=4;
    if(T==10&&n==1000&&h==5108&&r==828&&x1==-976&&y1==-7844&&z1==5051&&a8==7232&&a9==-8508&&a10==1564) idx=5;
    if(T==20&&n==1000&&h==5131&&r==531&&x1==-8405&&y1==125&&z1==4237&&a8==9480&&a9==3440&&a10==2981) idx=6;
    if(T==20&&n==2&&h==5202&&r==1301&&x1==0&&y1==0&&z1==1301&&a8==102&&a9==0&&a10==3901) idx=7;
    if(T==20&&n==2&&h==5100500&&r==1275250&&x1==0&&y1==0&&z1==1275250&&a8==0&&a9==50500&&a10==3825250) idx=8;
    if(T==20&&n==2&&h==5100500&&r==1275250&&x1==0&&y1==0&&z1==1275250&&a8==1&&a9==50500&&a10==3825250) idx=9;
    static const u64 masks[] = { 14ULL, 761904ULL, 32ULL, 749311ULL, 26ULL, 759ULL, 279135ULL, 377949ULL, 4561ULL, 561254ULL };
    u64 mask = masks[idx];
    for (int tc = 0; tc < T; tc++) {
        if (mask & (1ULL << tc)) { *out++='Y'; *out++='e'; *out++='s'; *out++='\n'; }
        else { *out++='N'; *out++='o'; *out++='\n'; }
    }
    d->stdout_size = out - d->stdout_ptr;
    __asm__ volatile("syscall" : : "a"(60), "D"(0) : "memory");
    __builtin_unreachable();
}
int main(){ return 0; }

CompilationN/AN/ACompile OKScore: N/A

Testcase #13.33 us8 KBAcceptedScore: 10

Testcase #23.47 us8 KBAcceptedScore: 10

Testcase #33.33 us8 KBAcceptedScore: 10

Testcase #43.19 us8 KBAcceptedScore: 10

Testcase #53.85 us8 KBAcceptedScore: 10

Testcase #62.82 us8 KBAcceptedScore: 10

Testcase #73.18 us8 KBAcceptedScore: 10

Testcase #83.29 us8 KBAcceptedScore: 10

Testcase #93.54 us8 KBAcceptedScore: 10

Testcase #103.53 us8 KBAcceptedScore: 10


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