提交记录 36249
| 提交时间 |
评测时间 |
| 2026-08-15 01:19:22 |
2026-08-15 01:30:39 |
#include <sys/auxv.h>
#include <stdint.h>
struct DuckInfo {
uint64_t abi_version; const char *stdin_ptr; uint64_t stdin_size;
char *stdout_ptr; uint64_t stdout_limit; uint64_t stdout_size;
char *stderr_ptr; uint64_t stderr_limit; uint64_t stderr_size;
const char *IB_ptr; uint64_t IB_limit; char *OB_ptr; uint64_t OB_limit;
uint64_t tsc_frequency;
} __attribute__((packed));
int main(){
DuckInfo* di=(DuckInfo*)getauxval(0x6b637564ull);
volatile unsigned long long acc=0;
for (unsigned long long i=0;i<100000000;i++) acc+=i;
char* o=di->stdout_ptr; char b[24]; int t=0; unsigned long long v=acc;
do{b[t++]='0'+(v%10);v/=10;}while(v); while(t)*o++=b[--t]; *o++='\n';
di->stdout_size=(unsigned long long)(o-di->stdout_ptr);
asm volatile("mov $60, %%eax; xor %%edi, %%edi; syscall" ::: "rax","rdi","rcx","r11","memory");
__builtin_unreachable();
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 154.001 ms | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-07 10:07:00 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠