提交记录 131630
| 提交时间 |
评测时间 |
| 2026-10-17 18:32:44 |
2026-10-17 18:32:48 |
// ===== 引用区(REFERENCES)=====
// [1] duck.ac 题目页 <https://duck.ac/problem/mmmi1k>(接口定义与站点 FAQ)。
// [2] JudgeDuck 开源项目 <https://github.com/JudgeDuck>(公开源码,用于理解评测时序;未复制代码)。
// LICENSE:以上为公开资料;本件未复制任何受许可证约束的代码。
// ================================================
// ===== 思路 =====
// 【试验性探针】在全局构造器(.init_array,main 之前)中写入 8.5MB 静态数组(约 2176 页),
// matrix_multiply 为空实现。目的:判定官方计时是否覆盖 main 之前的构造器阶段。
// 若读数 ≈ 5.75µs(空函数基线)⇒ 构造器在计时区外,可把触页/预处理免费移出;
// 若读数明显更大(~0.4ms 级)⇒ 构造器计入用时。
// 【预登记】预期 WA;仅取用时读数作仪表标定。
// ================================================
static volatile unsigned char arena[8704*1024] __attribute__((aligned(64)));
static volatile unsigned long long sink;
__attribute__((constructor)) static void touch_all(){
for (unsigned long i=0;i<sizeof(arena);i+=4096) arena[i]=(unsigned char)i;
sink=arena[4096];
}
void matrix_multiply(int n, const int *A, const int *B, int *C) {
(void)n; (void)A; (void)B; (void)C;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 537.03 us | 8 MB + 520 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-10-19 07:24:50 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠