提交记录 31537
| 提交时间 |
评测时间 |
| 2026-08-14 09:51:04 |
2026-08-14 09:51:06 |
struct __libc {
char can_do_threads, threaded, secure, need_locks;
int threads_minus_1;
unsigned long *auxv;
void *tls_head;
unsigned long tls_size, tls_align, tls_cnt;
unsigned long page_size;
void *self;
unsigned long long usertime;
unsigned stack_size, pid;
char rest[384];
};
struct __libc __libc;
int plus(int a, int b) { return a + b; }
extern void __init_tls(unsigned long *aux);
void __libc_start_main(int (*mf)(int, char **), int ac, char **av) {
char **envp = av + ac + 1;
while (*envp) envp++;
unsigned long *aux = (unsigned long *)(envp + 1);
__libc.auxv = aux;
__libc.page_size = 4096;
__init_tls(aux);
mf(ac, av);
__asm__ volatile("mov $60,%eax; xor %edi,%edi; syscall");
__builtin_unreachable();
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 3.02 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 07:57:21 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠