提交记录 142459


用户 题目 状态 得分 用时 内存 语言 代码长度
Dr_mark 1007. 测测你的memset Compile Error 0 0 ns 0 KB C++14 293 B
提交时间 评测时间
2026-11-07 09:38:02 2026-11-07 09:38:03
void my_memset(char *__restrict__ a, char c, unsigned n)
{
    unsigned i = 0;
    /* 4 路展开 */
    for (; i + 3 < n; i += 4)
    {
        a[i]     = c;
        a[i + 1] = c;
        a[i + 2] = c;
        a[i + 3] = c;
    }
    /* 收尾 */
    for (; i < n; ++i)
    {
        a[i] = c;
    }
}

CompilationN/AN/ACompile ErrorScore: N/A


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