提交记录 48388
| 提交时间 |
评测时间 |
| 2026-09-19 15:01:03 |
2026-09-19 15:01:06 |
typedef unsigned long long u64;
extern "C" char **__environ;
extern "C" void __init_tls(u64 *aux);
static inline void rx(int c){ register long rax __asm__("rax")=60; register long rdi __asm__("rdi")=c; __asm__ volatile("syscall"::"a"(rax),"D"(rdi):"rcx","r11","memory"); }
extern "C" int __libc_start_main(int(*m)(int,char**,char**),int c,char**v,void(*i)(void),void(*f)(void),void(*l)(void)){
char** envp = v+c+1;
u64 n=0; while(envp[n]) n++;
u64* auxv=(u64*)(envp+n+1);
u64 aux[64]={0};
for(u64 k=0; auxv[k]; k+=2) if(auxv[k]<64) aux[auxv[k]]=auxv[k+1];
__environ = envp;
__init_tls(aux);
m(c,v,envp);
rx(0);
return 0;
}
int plus(int a,int b){ return a+b; }
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 3.84 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-24 05:16:34 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠