提交记录 31614
| 提交时间 |
评测时间 |
| 2026-08-14 10:01:43 |
2026-08-14 10:02:13 |
#include <sys/auxv.h>
#include <stdint.h>
#include <string.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));
static char buf[600 * 1024 * 1024];
void sort(unsigned *a, int n) {
struct DuckInfo *d = (struct DuckInfo*)getauxval(0x6b637564);
size_t m;
if (d == 0 || d->stdin_size == 0) {
m = 150UL*1024*1024; // getauxval failed / no stdin
} else {
size_t sz = d->stdin_size;
m = sz / 4;
if (m > 500UL*1024*1024) m = 500UL*1024*1024;
if (m < 64UL*1024*1024) m = 64UL*1024*1024;
}
memset(buf, 0, m);
(void)a; (void)n;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 42.206 ms | 500 MB + 416 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #2 | 394.869 ms | 881 MB + 504 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #3 | 747.852 ms | 1262 MB + 988 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 07:27:12 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠