提交记录 11212


用户 题目 状态 得分 用时 内存 语言 代码长度
weng_weijie 1007. 测测你的memset Compile Error 0 0 ns 0 KB C++11 162 B
提交时间 评测时间
2019-11-06 15:10:59 2020-08-01 02:39:55
void my_memset(char *a, char c, unsigned n) {
unsigned i = 0;
for (; i + 4 < n; i += 4)
a[i] = a[i + 1] = a[i + 2] = a[i + 3] = c;
for (; i < n; ++i)
a[i] = c;
}

CompilationN/AN/ACompile ErrorScore: N/A


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