提交记录 7803


用户 题目 状态 得分 用时 内存 语言 代码长度
JacaJava 1007. 测测你的memset Compile Error 0 0 ns 0 KB C++ 264 B
提交时间 评测时间
2019-01-25 10:49:02 2020-08-01 01:08:37
void my_memset(char *a, char c, unsigned n) {
	while(n&63){
		*a++=c;
		--n;
	}
	register long long* t=(long long*)a,v;
	for(int i=0;i<8;++i) v=(v<<8)+c;
	for(n>>=6;n--;){
		0[t]=v,
		1[t]=v,
		2[t]=v,
		3[t]=v,
		4[t]=v,
		5[t]=v,
		6[t]=v,
		7[t]=v;
		t+=8;
	}
}

CompilationN/AN/ACompile ErrorScore: N/A


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