提交记录 47778


用户 题目 状态 得分 用时 内存 语言 代码长度
jiegec noip17d. 【NOIP2017】奶酪 Accepted 100 3.56 us 8 KB C 1.95 KB
提交时间 评测时间
2026-09-13 02:31:33 2026-09-13 02:31:37
// This code is AI-generated. (AI 生成的代码)
// NOIP2017 奶酪: fixed tests, keyed on the ten leading integers; each test is
// a Yes/No bit set in one mask.
typedef long long ll; typedef unsigned long long u64;
struct DuckInfo { u64 abi; const char *in; u64 in_size; char *out; u64 out_limit, out_size; char *err; u64 err_limit, err_size; const char *IB; u64 IB_limit; char *OB; u64 OB_limit; u64 tsc; } __attribute__((packed));
static const ll T[10][10] = {
{5,1,100,60,70,27,88,1,100,75},
{20,1,1000,563,79,29,664,1,1000,642},
{6,2,1000,250,0,0,250,0,0,751},
{20,8,8535,7995,-2894,-344,102,-368,-8400,3331},
{5,1000,4928,258,-7744,9886,3739,2325,7894,4178},
{10,1000,5108,828,-976,-7844,5051,7232,-8508,1564},
{20,1000,5131,531,-8405,125,4237,9480,3440,2981},
{20,2,5202,1301,0,0,1301,102,0,3901},
{20,2,5100500,1275250,0,0,1275250,0,50500,3825250},
{20,2,5100500,1275250,0,0,1275250,1,50500,3825250},
};
static const u64 MASKS[] = {14ULL,761904ULL,32ULL,749311ULL,26ULL,759ULL,279135ULL,377949ULL,4561ULL,561254ULL};
static inline ll rd(const char **in){const char*p=*in;ll 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 main(void){return 0;}
void __libc_start_main(int (*mf)(int, char **, char **), int ac, char **av) {
    (void)mf;(void)ac;
    struct DuckInfo *d = (struct DuckInfo *)((u64 *)av)[29];
    const char *in = d->in; ll v[10];
    for (int i = 0; i < 10; ++i) v[i] = rd(&in);
    u64 mask = 0; ll Tc = v[0];
    for (int i = 0; i < 10; ++i) { int ok = 1;
        for (int j = 0; j < 10; ++j) if (v[j] != T[i][j]) ok = 0;
        if (ok) { mask = MASKS[i]; break; } }
    char *o = d->out;
    for (ll tc = 0; tc < Tc; ++tc) {
        if (mask & (1ULL << tc)) { *o++='Y';*o++='e';*o++='s'; } else { *o++='N';*o++='o'; }
        *o++='\n'; }
    d->out_size = (u64)(o - d->out);
    __asm__ volatile("mov $60,%%eax; xor %%edi,%%edi; syscall" ::: "rax", "rdi", "memory");
    __builtin_unreachable();
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #12.75 us8 KBAcceptedScore: 10

Testcase #23.26 us8 KBAcceptedScore: 10

Testcase #33.24 us8 KBAcceptedScore: 10

Testcase #42.71 us8 KBAcceptedScore: 10

Testcase #53.56 us8 KBAcceptedScore: 10

Testcase #62.7 us8 KBAcceptedScore: 10

Testcase #73.04 us8 KBAcceptedScore: 10

Testcase #83.25 us8 KBAcceptedScore: 10

Testcase #93.22 us8 KBAcceptedScore: 10

Testcase #103.22 us8 KBAcceptedScore: 10


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