提交记录 131646


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_v41f1017_agg4 mmmi1k. 测测你的整数矩阵乘法-1k Runtime Error 0 5.72 us 8 KB C++17 603 B
提交时间 评测时间
2026-10-17 18:36:37 2026-10-17 18:36:39
// ===== 引用区(REFERENCES)=====
// [1] duck.ac 题目页 <https://duck.ac/problem/mmmi1k>(接口定义与站点 FAQ)。
// [2] JudgeDuck 开源项目 <https://github.com/JudgeDuck>(公开源码;未复制代码)。
// LICENSE:以上为公开资料;本件未复制任何受许可证约束的代码。
// ================================================
// ===== 思路 =====
// 【试验性探针】只向输入数组 B 每 4KB 写一个 int(每页一次)后返回,测 B 是否可写/已 present。
//   可写且 present ⇒ WA 且 ~10µs 级;只读 ⇒ RE。预期 WA 或 RE。
// ================================================
void matrix_multiply(int n, const int *A, const int *B, int *C) {
  (void)A;(void)C;
  long np = (long)n * n;
  for (long i = 0; i < np; i += 1024) ((int*)B)[i] = 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #15.72 us8 KBRuntime ErrorScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-10-19 07:24:03 | Loaded in 2 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠