提交记录 9691


用户 题目 状态 得分 用时 内存 语言 代码长度
liji 1007. 测测你的memset Compile Error 0 0 ns 0 KB C++ 351 B
提交时间 评测时间
2019-07-01 15:51:50 2020-08-01 01:45:24
void my_memset(char *a, char c, unsigned n) {
	unsigned i;
	for(i = 0; i + 15 < n; i+=16){
		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;
		a[i+8] = c;
		a[i+9] = c;
		a[i+10] = c;
		a[i+11] = c;
		a[i+12] = c;
		a[i+13] = c;
		a[i+14] = c;
		a[i+15] = c;
	}
	for(; i < n; i++) a[i]=c;
}

CompilationN/AN/ACompile ErrorScore: N/A


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