提交记录 4964


用户 题目 状态 得分 用时 内存 语言 代码长度
user1 1007. 测测你的memset Compile Error 0 0 ns 0 KB C++ 214 B
提交时间 评测时间
2018-08-03 13:06:42 2020-07-31 23:58:35
void my_memset(char *a, char c, unsigned n) {unsigned i = 0, m=n-100, v=(unsigned char)c*0x01010101;
        for(; i<m; i+=16) *(int*)(a)=*(int*)(a+4)=*(int*)(a+8)=*(int*)(a+12)=v;
	for(; i < n; i++)
		a[i] = c;
}

CompilationN/AN/ACompile ErrorScore: N/A


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