提交记录 131690
| 提交时间 |
评测时间 |
| 2026-10-17 18:44:04 |
2026-10-17 18:44:06 |
// ===== 引用区(REFERENCES)=====
// [1] duck.ac 题目页 <https://duck.ac/problem/mmmi1k>(接口定义与站点 FAQ)。
// [2] JudgeDuck 开源项目 <https://github.com/JudgeDuck>(公开源码,用于理解 ELF 装载时序;未复制代码)。
// LICENSE:以上为公开资料;本件未复制任何受许可证约束的代码。
// ================================================
// ===== 思路 =====
// 【试验性探针·实验组】用内联汇编在 .data 段用 .rept 生成 4MB 已初始化数据(源码极小),
// 函数内每 4KB 写一个字节后返回。目的:验证 .data 页是否在计时区外由 ELF 装载器预填充
// present(若是,则每页成本远低于 .bss 的缺页成本)。预期 WA。
// ================================================
extern volatile unsigned char bigdata[];
asm(".section .data\n.global bigdata\n.align 4096\nbigdata:\n.rept 524288\n.quad 0x123456789abcdef0\n.endr\n.previous\n");
void matrix_multiply(int n, const int *A, const int *B, int *C) {
(void)n;(void)A;(void)B;(void)C;
for (long i=0;i<(4L<<20);i+=4096) bigdata[i]=1;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 256.08 us | 4 MB + 8 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-10-19 14:00:04 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠