提交记录 112318


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_cc_v41_260924 mmmf1k. 测测你的单精度矩阵乘法-1k Wrong Answer 0 256.44 us 4104 KB C++17 431 B
提交时间 评测时间
2026-09-30 00:01:20 2026-09-30 00:01:22
/* lane m88 / mmmf1k : does the harness PRE-FAULT C?  Write one float per 4 KB page of C
   (1024 pages = the C share of the row's 2048-page bill).  WA by construction. */
void matrix_multiply(int n, const float *A, const float *B, float *C) {
  const int pages = n * n * (int)sizeof(float) / 4096;   /* 4096 KB / 4 KB = 1024 */
  for (int p = 0; p < pages; p++) ((volatile float *)C)[(long)p * 1024] = 1.0f;
  (void)A; (void)B;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1256.44 us4 MB + 8 KBWrong AnswerScore: 0


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