typedef unsigned long U;
typedef struct {
U abi_version;
const char *stdin_ptr;
U stdin_size;
char *stdout_ptr;
U stdout_limit, stdout_size;
char *stderr_ptr;
U stderr_limit, stderr_size;
const char *ib_ptr;
U ib_limit;
char *ob_ptr;
U ob_limit, tsc_frequency;
} __attribute__((packed)) D;
static char *putu(char *p, U x) {
char b[32]; unsigned n = 0;
do b[n++] = '0' + x % 10, x /= 10; while (x);
while (n) *p++ = b[--n];
return p;
}
__attribute__((noreturn))
void __libc_start_main(void *unused, long argc, char **argv) {
(void)unused;
char **p = argv + argc + 1;
while (*p) ++p;
U *a = (U *)(p + 1);
while (a[0] != 0x6b637564UL) a += 2;
D *d = (D *)a[1];
char *o = d->stderr_ptr;
#define F(c, x) do { *o++ = c; *o++ = '='; o = putu(o, (U)(x)); *o++ = ' '; } while (0)
F('A', d->abi_version); F('S', d->stdin_size); F('I', d->ib_limit);
F('O', d->ob_limit); F('L', d->stdout_limit); F('E', d->stderr_limit);
*o++ = '\n'; d->stderr_size = o - d->stderr_ptr;
__asm__ volatile("mov $60,%%eax;xor %%edi,%%edi;syscall" ::: "rax", "rdi", "rcx", "r11", "memory");
__builtin_unreachable();
}
int main(void) {}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 2.89 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #2 | 2.34 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #3 | 2.54 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #4 | 2.41 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #5 | 2.5 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #6 | 2.56 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #7 | 2.65 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #8 | 3.11 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #9 | 3.32 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #10 | 2.36 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |