提交记录 17441


用户 题目 状态 得分 用时 内存 语言 代码长度
qidirj 1007. 测测你的memset Compile Error 0 0 ns 0 KB C++ 318 B
提交时间 评测时间
2022-02-26 11:19:37 2022-02-26 11:19:37
void my_memset(char *a, char c, unsigned n)
{
    unsigned i;
    for (i = 0; i < n; i += 8)
    {
        a[i] = c;
        a[i+1] = c;
        a[i+2] = c;
        a[i+3] = c;
        a[i+4] = c;
        a[i+5] = c;
        a[i+6] = c;
        a[i+7] = c;
    }
    for (; i < n; ++i)
    {
        a[i] = c;
    }
}

CompilationN/AN/ACompile ErrorScore: N/A


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