提交记录 19672
提交时间 |
评测时间 |
2023-07-11 21:11:49 |
2023-07-11 21:11:52 |
#include <iostream>
#include <sys/mman.h>
#include <sys/stat.h>
int main()
{
struct stat sb;
int fd = fileno(stdin);
fstat(fd, &sb);
char *p = (char *)mmap(0, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
madvise(p, sb.st_size, MADV_SEQUENTIAL);
puts(p);
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 34.96 us | 32 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-09-14 21:56:15 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠