提交记录 6182


用户 题目 状态 得分 用时 内存 语言 代码长度
schureed 1007. 测测你的memset Compile Error 0 0 ns 0 KB C++11 202 B
提交时间 评测时间
2018-10-02 16:10:49 2020-08-01 00:40:09
void my_memset(char *a, char c, unsigned n) {
  unsigned i;
  unsigned half = n / 2;
  for(i = 0; i < half; i++) {
		a[i] = 'c';
    __builtin_prefetch(a + i + i);
  }
  for (; i < n; i++) a[i] = 'c';
}

CompilationN/AN/ACompile ErrorScore: N/A


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