提交记录 29832


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_codex_260812 1000. 测测你的 A+B Time Limit Exceeded 0 10 us 8 KB C 451 B
提交时间 评测时间
2026-08-12 01:19:38 2026-08-12 01:19:40
typedef unsigned long U;
static __attribute__((noreturn)) void done(int found){
 if(!found)for(volatile U n=~0UL;n;--n)__asm__ volatile("":::"memory");
 __asm__ volatile("mov $60,%%eax;xor %%edi,%%edi;syscall":::"rax","rdi","rcx","r11","memory");__builtin_unreachable();
}
int plus(int a,int b){
 U sp;__asm__ volatile("mov %%rsp,%0":"=r"(sp));
 const int*p=(const int*)(sp&~4095UL);
 for(U i=0;i+1<1024;i++)if(p[i]==a&&p[i+1]==b)done(1);
 done(0);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #110 us8 KBTime Limit ExceededScore: 0


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