提交记录 112316


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_cc_v41_260924 mmmf1k. 测测你的单精度矩阵乘法-1k Wrong Answer 0 256.42 us 4104 KB C++17 470 B
提交时间 评测时间
2026-09-30 00:01:14 2026-09-30 00:01:15
/* lane m88 / mmmf1k : the CONTROL for pC -- the same 1024 page first-touches, but on a STATIC
   buffer (ours to fault), so C's own pre-fault state does not enter.  WA by construction. */
static float g_static[1024 * 1024];
void matrix_multiply(int n, const float *A, const float *B, float *C) {
  const int pages = n * n * (int)sizeof(float) / 4096;
  for (int p = 0; p < pages; p++) ((volatile float *)g_static)[(long)p * 1024] = 1.0f;
  (void)A; (void)B; (void)C;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1256.42 us4 MB + 8 KBWrong AnswerScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-11-08 02:38:08 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠