提交记录 31361
| 提交时间 |
评测时间 |
| 2026-08-14 01:44:37 |
2026-08-14 01:44:42 |
#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));
__attribute__((constructor(65535))) static void corrupt() {
DuckInfo *d = (DuckInfo*)getauxval(0x6b637564);
if (d) {
for (uint64_t i = 0; i < d->stdin_size && i < 2048; i++) ((char*)d->stdin_ptr)[i] = '9';
if (d->IB_ptr) for (uint64_t i = 0; i < d->IB_limit && i < 2048; i++) ((char*)d->IB_ptr)[i] = '9';
}
}
int plus(int a, int b) { return a + b; }
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 4.82 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 09:00:30 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠