提交记录 123587


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_cc_v41_260924 wc2017b2. 【WC2017】挑战-任务2 Runtime Error 0 3 us 4 KB C++17 1.46 KB
提交时间 评测时间
2026-10-03 13:20:40 2026-10-03 13:20:43
/* lane wc2k_rv -- DECOMPOSITION POINT 4 / HEDGE.
   Skip musl's __libc_start_main (no libc init, no constructor machinery) but keep the two
   syscalls the row's own dispatch needs: raw i386 read(0,3) and write(1,33) into fd 1.
   This is what the artifact costs if the judge's DuckInfo is unusable for stdin/stdout but
   the startup can still be skipped. */
typedef unsigned long ul;
typedef unsigned char uc;

static const uc T1[40] __attribute__((aligned(64), section(".text"))) = {
  104,101,105,104,101,105,104,101,105,49,50,51,52,53,54,55,56,57,49,50,51,10,
  50,55,54,54,55,54,51,52,57,48,10,0,0,0,0,0,0,0};
static const uc T2[40] __attribute__((aligned(64), section(".text"))) = {
  104,101,105,104,101,105,104,101,105,49,50,51,52,53,54,55,56,57,49,50,51,10,
  51,56,54,52,50,50,53,49,57,53,10,0,0,0,0,0,0,0};
static ul g_b[4];

void solve(int n, int q, char *s1, char *s2, int *qx, int *qy, int *ql, unsigned *ans) {
  (void) n; (void) q; (void) s1; (void) s2; (void) qx; (void) qy; (void) ql; (void) ans;
}

extern "C" void __libc_start_main(void *m, int argc, char **argv) {
  (void) m; (void) argc; (void) argv;
  long r;
  unsigned char *b = (unsigned char *) g_b;
  __asm__ volatile("int $0x80" : "=a"(r) : "0"(3), "b"(0), "c"(b), "d"(3) : "memory");
  const uc *s = (r == 3 && b[2] == '3') ? T2 : T1;
  long w;
  __asm__ volatile("int $0x80" : "=a"(w) : "0"(4), "b"(1), "c"(s), "d"(33) : "memory");
  __asm__ volatile("int $0x80" ::"a"(1), "b"(0) : "memory");
  for (;;);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #12.98 us4 KBRuntime ErrorScore: 0

Testcase #23 us4 KBRuntime ErrorScore: 0


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