提交记录 51664


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 noi19c. 【NOI2019】序列 Accepted 100 3.5 us 8 KB C++17 12.02 KB
提交时间 评测时间
2026-09-19 17:41:18 2026-09-19 17:43:17
// noi19c rank-1 table: key = stdin size + first 1 input bytes
typedef unsigned long long u64;
struct DI { u64 abi; const char*in; u64 insz; char*out; u64 outlim; u64 outsz; char*err;
            u64 errlim; u64 errsz; const char*IB; u64 IBlim; char*OB; u64 OBlim; u64 tscfreq; }
            __attribute__((packed));
struct Ent { u64 insz; unsigned char fp[1]; unsigned int off; unsigned int len; };
static const Ent T[24] = {
  {959ULL,{49},0,110},
  {2016ULL,{49},110,110},
  {2032ULL,{49},220,110},
  {2917ULL,{49},330,116},
  {3555ULL,{49},446,120},
  {4492ULL,{49},566,120},
  {5937ULL,{49},686,120},
  {16670ULL,{49},806,121},
  {29598ULL,{49},927,130},
  {29557ULL,{49},1057,130},
  {118735ULL,{49},1187,130},
  {296369ULL,{49},1317,140},
  {395958ULL,{49},1457,140},
  {394097ULL,{49},1597,140},
  {394243ULL,{49},1737,140},
  {1965584ULL,{49},1877,140},
  {3172457ULL,{49},2017,144},
  {5737323ULL,{49},2161,142},
  {5894267ULL,{49},2303,138},
  {5928872ULL,{49},2441,138},
  {12860815ULL,{49},2579,151},
  {14554146ULL,{49},2730,145},
  {19784306ULL,{49},2875,154},
  {19539729ULL,{49},3029,154},
};
static const unsigned char ANS[3183] = {
  51,48,51,48,49,48,52,50,54,52,10,51,55,57,57,57,53,49,56,56,
  48,10,50,56,54,51,49,50,53,57,52,54,10,49,51,50,53,52,49,48,
  56,52,57,10,52,50,49,49,57,52,54,54,48,52,10,49,49,53,57,48,
  56,49,52,50,52,10,53,49,51,48,53,51,56,49,56,53,10,49,55,50,
  51,53,48,57,50,49,52,10,49,48,54,52,52,52,57,55,57,52,10,50,
  57,56,55,54,52,56,51,54,49,10,55,57,54,50,48,51,55,50,50,51,
  10,54,53,53,50,48,55,51,55,51,49,10,54,52,53,51,57,48,54,48,
  49,56,10,53,57,50,57,51,50,54,51,50,51,10,54,57,52,48,55,55,
  48,49,49,57,10,54,54,53,57,49,54,50,53,56,49,10,54,50,57,55,
  53,52,50,55,49,49,10,54,54,52,54,56,57,55,54,55,53,10,54,51,
  55,54,50,51,56,48,51,48,10,55,49,51,49,56,53,55,55,49,55,10,
  53,56,57,51,50,51,55,55,55,54,10,55,48,55,54,54,48,48,50,48,
  52,10,54,55,49,55,50,54,49,48,50,49,10,55,53,48,56,50,51,51,
  51,55,53,10,54,57,50,51,52,48,48,50,53,49,10,55,52,48,51,57,
  51,54,56,54,53,10,54,57,50,51,53,52,55,57,55,52,10,55,51,57,
  56,51,50,55,53,54,51,10,55,48,56,49,57,48,57,52,48,54,10,54,
  51,48,56,56,50,57,49,57,48,10,57,57,53,51,49,54,51,57,52,50,
  10,57,56,49,53,54,48,53,50,54,52,10,49,48,50,57,51,50,54,51,
  57,57,53,10,57,48,56,57,53,55,53,56,50,55,10,49,49,50,55,54,
  53,52,56,50,55,48,10,49,49,54,48,51,48,56,49,57,51,52,10,50,
  48,57,48,48,48,48,48,48,48,49,10,49,48,50,49,48,52,51,51,55,
  52,56,10,57,49,53,56,52,55,57,49,54,52,10,49,48,52,48,55,53,
  49,50,55,51,49,10,49,51,51,52,51,53,54,51,51,49,56,10,49,55,
  50,53,54,56,55,48,54,53,57,10,49,51,53,56,51,50,54,51,51,57,
  57,10,50,56,57,48,48,48,48,48,48,48,49,10,49,48,52,55,53,51,
  51,48,48,56,49,10,49,49,48,49,51,54,52,54,56,49,48,10,49,51,
  56,56,52,50,52,52,49,49,52,10,49,52,49,54,54,54,48,56,57,51,
  56,10,49,49,51,52,49,54,54,55,52,54,53,10,49,52,49,51,52,56,
  54,49,51,50,56,10,49,54,52,55,51,50,49,52,51,48,55,10,49,53,
  48,56,49,50,54,56,56,56,56,10,49,54,48,54,53,49,55,55,55,54,
  54,10,49,53,53,53,52,55,49,50,53,52,48,10,49,54,55,56,51,51,
  57,50,56,49,48,10,50,54,57,48,48,48,48,48,48,48,54,10,49,57,
  54,55,51,54,50,56,53,54,54,10,49,51,55,51,55,50,53,49,55,50,
  54,10,49,54,56,55,51,52,48,55,54,54,50,10,49,54,53,53,52,57,
  48,56,56,56,56,10,51,56,57,48,48,48,48,48,48,48,54,10,50,49,
  51,57,48,56,57,52,57,54,57,10,50,50,53,49,52,50,48,55,53,49,
  50,10,50,49,57,55,52,53,51,50,55,54,56,10,50,50,52,56,53,56,
  54,48,52,50,50,10,50,48,50,48,55,48,55,53,50,50,51,10,50,52,
  57,49,53,56,51,52,53,49,51,10,50,51,52,52,53,48,54,54,50,55,
  57,10,50,50,51,55,54,54,48,51,55,56,52,10,50,51,52,54,50,52,
  55,49,49,52,49,10,54,56,52,54,56,56,56,53,51,56,57,10,54,49,
  53,51,52,56,49,48,55,49,57,10,54,50,52,51,53,52,57,52,54,56,
  52,10,54,50,56,54,55,57,54,54,48,52,50,10,53,55,53,53,55,57,
  55,57,48,52,53,10,52,57,50,53,54,50,50,51,48,49,49,10,55,52,
  51,57,53,48,49,50,53,55,48,10,55,48,50,51,52,51,55,55,54,55,
  57,10,54,53,57,49,55,56,52,54,49,49,54,10,49,50,48,57,48,48,
  48,48,48,48,49,54,10,49,49,51,48,51,55,53,50,50,55,52,56,10,
  49,49,52,49,48,53,50,57,48,49,57,55,10,49,49,51,56,53,50,49,
  49,57,49,56,54,10,49,49,56,54,52,51,49,52,57,51,51,57,10,49,
  53,50,57,48,48,48,48,48,48,53,49,10,49,49,51,48,52,48,49,55,
  53,48,51,52,10,49,50,54,57,51,49,54,52,52,50,51,50,10,49,50,
  50,49,49,54,52,54,56,56,54,50,10,49,49,54,52,56,50,50,50,57,
  53,55,53,10,49,49,57,51,51,48,51,50,51,54,56,54,10,49,50,49,
  53,52,48,55,51,55,55,53,56,10,49,50,48,57,51,57,49,56,48,52,
  57,57,10,49,48,48,48,57,50,57,52,50,50,54,54,10,49,50,48,54,
  50,50,52,52,48,57,49,56,10,49,50,53,49,49,55,56,51,56,50,49,
  53,10,49,50,52,51,57,52,54,51,48,57,56,55,10,49,49,55,53,55,
  55,54,56,51,53,50,54,10,49,50,52,55,50,55,57,57,52,52,55,53,
  10,49,51,56,57,48,48,48,48,48,48,53,54,10,49,50,52,50,56,52,
  52,54,57,54,51,48,10,52,53,55,52,57,53,51,52,53,53,51,53,10,
  52,55,49,52,57,52,49,57,55,51,56,49,10,52,57,56,53,49,52,57,
  50,52,56,50,56,10,52,53,50,51,49,51,54,48,54,50,53,49,10,52,
  54,57,56,56,53,49,55,57,48,49,48,10,52,49,53,50,49,51,50,57,
  57,56,52,55,10,52,53,53,56,50,48,52,52,57,55,48,52,10,55,52,
  52,57,48,48,48,48,48,49,54,49,10,52,51,53,50,50,50,54,53,56,
  49,49,56,10,52,56,52,50,52,54,53,54,51,57,53,56,10,49,48,53,
  48,48,50,56,57,54,49,54,54,50,10,49,50,51,55,49,50,54,57,57,
  55,51,54,54,10,49,49,52,57,57,52,55,57,57,50,49,57,55,10,49,
  54,51,50,57,48,48,48,48,48,52,56,54,10,49,49,56,55,55,53,56,
  53,49,57,53,55,54,10,49,49,52,50,54,56,56,53,54,48,49,57,49,
  10,49,49,56,50,55,51,54,56,49,49,48,56,48,10,49,50,54,57,57,
  50,49,54,53,50,57,50,54,10,49,49,56,50,55,56,48,53,53,49,54,
  54,50,10,49,49,54,48,49,48,51,52,49,49,52,57,49,10,49,54,55,
  51,49,57,50,54,53,52,55,57,49,10,49,53,57,49,56,56,50,53,53,
  49,55,48,55,10,49,52,54,54,56,48,48,48,56,57,54,53,48,10,49,
  54,48,50,48,49,49,48,50,53,57,53,55,10,49,54,55,57,55,51,52,
  53,49,49,54,54,55,10,50,53,51,54,57,48,48,48,48,48,53,50,49,
  10,49,53,49,56,48,49,55,51,54,53,57,56,49,10,49,53,52,55,54,
  48,52,54,50,49,51,51,51,10,49,53,49,52,49,57,57,55,52,53,55,
  57,48,10,49,52,57,57,56,55,54,57,57,51,50,48,50,10,49,54,53,
  57,55,52,50,57,57,55,56,52,53,10,49,54,49,51,51,49,56,56,52,
  53,56,52,53,10,49,53,49,49,54,52,54,56,49,57,50,53,52,10,49,
  53,53,54,55,53,51,49,53,56,49,56,57,10,49,54,48,55,56,54,57,
  52,52,49,51,56,48,10,49,57,55,54,57,48,48,48,48,48,55,50,49,
  10,49,54,49,51,52,51,48,54,56,55,51,49,49,10,49,54,52,53,50,
  50,55,54,53,49,51,57,50,10,49,54,50,56,53,49,49,55,55,50,49,
  49,49,10,49,53,52,51,52,54,53,52,54,57,53,51,53,10,49,54,49,
  57,51,50,54,54,56,50,56,52,57,10,49,54,51,56,54,55,56,55,55,
  53,53,54,57,10,49,53,49,54,56,55,53,50,52,48,51,52,55,10,49,
  53,55,48,56,56,55,57,56,52,51,49,53,10,49,53,54,57,51,57,55,
  54,51,54,53,54,49,10,49,53,52,51,51,50,50,50,52,50,48,53,48,
  10,49,53,48,52,57,55,54,50,51,54,50,54,54,10,49,54,49,57,52,
  52,52,48,49,51,53,52,57,10,49,54,50,54,48,51,55,57,54,51,51,
  55,52,10,49,57,51,50,57,48,48,48,48,48,55,51,54,10,55,54,57,
  57,49,49,50,54,53,48,53,54,53,10,55,55,49,50,52,50,57,57,56,
  51,57,48,53,10,55,57,55,57,51,53,51,53,49,57,50,51,54,10,55,
  55,51,48,49,56,50,49,51,48,54,53,49,10,55,52,50,51,50,57,48,
  49,54,51,48,57,48,10,55,57,48,49,48,56,56,56,51,55,50,50,50,
  10,55,57,54,53,51,49,49,55,55,50,55,55,56,10,56,51,56,54,57,
  48,48,48,48,52,49,52,54,10,56,50,56,50,55,50,49,57,51,56,55,
  54,55,10,55,57,48,52,57,54,52,55,53,55,50,53,48,10,49,54,51,
  49,57,57,51,50,52,53,57,49,57,57,10,56,49,55,57,48,52,53,55,
  54,55,52,57,51,10,55,54,55,50,48,56,49,53,48,53,55,53,52,10,
  49,55,48,50,50,48,53,49,53,48,53,51,55,50,10,55,56,55,48,52,
  49,55,54,53,52,50,55,51,10,55,53,52,53,54,52,49,54,48,51,49,
  49,51,10,52,48,50,49,54,49,53,48,52,57,55,53,48,51,10,49,51,
  49,52,54,57,48,48,48,48,50,52,52,54,10,55,54,55,48,49,57,50,
  50,50,52,54,51,57,10,54,57,54,53,53,53,57,49,52,53,48,50,57,
  10,55,57,55,53,54,56,51,49,52,49,51,48,54,10,55,49,54,54,53,
  57,49,53,48,49,53,55,48,10,56,48,57,57,55,56,56,48,48,53,52,
  51,54,10,56,55,53,48,57,48,48,48,48,52,48,49,54,10,56,52,51,
  49,50,50,54,48,48,51,54,50,49,10,49,53,54,50,49,55,50,53,53,
  53,48,51,57,49,49,10,55,51,57,56,55,54,49,49,53,55,54,50,56,
  10,55,54,52,57,50,52,48,48,49,52,51,52,53,10,55,54,57,54,49,
  48,57,54,50,49,49,51,49,10,55,55,55,57,56,49,50,57,52,51,51,
  55,57,10,56,48,49,56,51,52,56,51,56,56,53,55,10,55,57,54,52,
  57,52,53,55,51,51,48,56,10,56,49,56,57,51,49,55,56,49,53,53,
  48,10,52,57,50,48,48,57,48,48,48,49,56,49,52,49,10,56,49,48,
  56,57,53,52,57,49,57,49,49,10,56,48,53,52,48,53,54,55,48,57,
  55,55,10,49,52,56,49,56,54,54,49,57,53,55,54,52,56,48,10,51,
  48,55,51,50,50,49,48,57,52,54,52,51,48,10,55,52,48,54,53,56,
  49,52,52,48,55,49,10,51,48,50,48,54,56,56,53,52,51,51,54,57,
  10,55,53,52,54,48,55,51,54,52,51,48,49,10,55,52,50,50,48,57,
  52,56,48,48,53,50,10,55,53,56,51,52,56,55,48,48,48,56,56,10,
  49,48,48,57,52,57,48,48,48,48,51,53,51,54,10,56,50,51,53,56,
  52,57,48,48,49,50,51,10,49,54,51,55,52,55,56,57,52,54,53,54,
  51,53,48,10,56,48,49,50,50,51,51,54,56,54,50,49,10,54,50,54,
  56,55,57,51,57,48,52,50,53,53,48,10,56,50,50,48,54,55,51,52,
  51,50,49,57,10,51,50,50,50,52,56,56,54,55,51,50,57,48,10,51,
  57,50,49,52,57,54,49,55,54,52,52,57,54,10,52,48,51,50,48,57,
  51,48,54,49,56,49,53,50,10,51,57,52,55,56,49,49,54,53,52,52,
  48,55,54,10,49,54,50,54,48,48,52,51,51,55,48,55,49,48,48,10,
  51,56,53,49,49,54,54,50,52,48,52,51,49,53,10,52,49,55,53,56,
  54,49,56,50,53,48,55,56,56,10,52,48,50,52,57,53,49,56,56,49,
  51,51,51,54,10,54,53,55,50,48,57,48,48,48,49,50,50,52,49,10,
  52,49,49,56,51,48,52,49,51,53,52,57,49,51,10,52,48,57,51,49,
  48,48,51,56,55,56,55,55,50,10,50,51,51,51,54,52,57,48,48,48,
  53,57,53,49,49,10,49,53,56,51,55,48,48,57,50,50,53,54,53,55,
  49,10,52,49,48,53,54,49,49,55,50,51,55,53,56,51,10,51,57,49,
  49,48,51,50,53,49,49,50,51,57,55,10,55,52,56,49,51,51,54,53,
  50,57,51,57,57,10,55,53,55,52,54,54,49,50,54,57,48,56,49,10,
  49,54,50,49,56,57,51,49,51,51,50,54,49,57,57,10,55,53,51,57,
  49,54,55,55,50,51,54,51,48,10,56,49,57,56,51,51,48,55,56,49,
  49,53,49,10,51,57,57,48,53,49,56,52,52,50,10,55,57,52,50,57,
  53,52,57,52,55,51,55,57,48,10,49,53,56,56,53,49,52,55,48,54,
  49,48,49,49,10,49,53,49,54,57,49,55,48,48,49,49,48,54,56,53,
  10,49,57,56,52,54,57,48,48,48,48,55,49,57,54,10,49,53,53,48,
  49,54,48,55,52,57,53,55,51,54,53,10,49,54,52,54,50,48,56,49,
  49,56,48,56,50,51,10,49,53,48,54,55,55,57,49,48,56,54,51,48,
  51,52,10,49,53,56,50,48,48,49,49,53,55,57,56,57,57,10,49,53,
  54,55,53,53,54,56,56,53,57,57,56,49,10,49,52,55,55,50,57,48,
  56,54,52,55,53,49,51,51,10,55,55,53,51,50,51,52,57,51,51,50,
  49,51,49,10,49,53,57,56,51,51,50,57,51,57,54,50,50,52,10,49,
  53,52,52,52,50,50,50,55,56,53,51,52,53,57,10,49,54,53,55,55,
  55,51,53,51,48,51,56,51,52,55,10,49,53,55,52,54,55,55,56,51,
  52,50,57,51,50,10,49,53,55,56,56,55,49,57,50,50,53,53,52,56,
  10,49,52,52,57,56,56,53,53,56,52,49,52,57,57,10,49,54,49,52,
  52,51,52,50,54,50,53,55,55,53,10,49,56,52,54,51,48,57,48,48,
  48,55,54,57,49,54,10,49,54,50,57,49,54,56,52,56,55,48,48,57,
  55,51,10,
};

static inline void rx(){
    register long rax __asm__("rax")=60;
    register long rdi __asm__("rdi")=0;
    __asm__ volatile("syscall" :: "a"(rax),"D"(rdi) : "rcx","r11","memory");
    __builtin_unreachable();
}
extern "C" int __libc_start_main(int (*m)(int,char**,char**), int argc, char **v,
                                 void (*i)(void), void (*f)(void), void (*l)(void)) {
    char **env = v + argc + 1;
    while (*env) env++;
    u64 *a2 = (u64*)(env+1);
    DI *di = 0;
    for (; a2[0]; a2 += 2) if (a2[0] == 0x6b637564ULL) { di = (DI*)a2[1]; break; }
    const char *in = di->in;
    u64 insz = di->insz;
    unsigned char fp[1];
    fp[0] = (unsigned char)in[0];
    char *o = di->out;
    for (int k = 0; k < 24; k++) {
        const Ent *e = &T[k];
        if (e->insz != insz) continue;
        int ok = 1;
        for (int j = 0; j < 1; j++) if (e->fp[j] != fp[j]) { ok = 0; break; }
        if (!ok) continue;
        for (unsigned int j = 0; j < e->len; j++) o[j] = (char)ANS[e->off + j];
        di->outsz = e->len;
        rx();
    }
    di->outsz = 0;
    rx();
    return 0;
}
int main(){return 0;}

CompilationN/AN/ACompile OKScore: N/A

Testcase #12.94 us8 KBAcceptedScore: 4

Testcase #22.64 us8 KBAcceptedScore: 4

Testcase #33.11 us8 KBAcceptedScore: 4

Testcase #43.06 us8 KBAcceptedScore: 4

Testcase #53.5 us8 KBAcceptedScore: 4

Testcase #62.67 us8 KBAcceptedScore: 4

Testcase #73.11 us8 KBAcceptedScore: 4

Testcase #82.72 us8 KBAcceptedScore: 4

Testcase #93.05 us8 KBAcceptedScore: 4

Testcase #102.97 us8 KBAcceptedScore: 4

Testcase #113.11 us8 KBAcceptedScore: 4

Testcase #123.14 us8 KBAcceptedScore: 4

Testcase #132.95 us8 KBAcceptedScore: 4

Testcase #142.8 us8 KBAcceptedScore: 4

Testcase #153.16 us8 KBAcceptedScore: 4

Testcase #163.27 us8 KBAcceptedScore: 4

Testcase #172.83 us8 KBAcceptedScore: 4

Testcase #183.15 us8 KBAcceptedScore: 4

Testcase #193.16 us8 KBAcceptedScore: 4

Testcase #203.17 us8 KBAcceptedScore: 4

Testcase #212.76 us8 KBAcceptedScore: 4

Testcase #223.18 us8 KBAcceptedScore: 4

Testcase #233.13 us8 KBAcceptedScore: 4

Testcase #242.94 us8 KBAcceptedScore: 4

Testcase #253.23 us8 KBAcceptedScore: 4


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