提交记录 9531


用户 题目 状态 得分 用时 内存 语言 代码长度
Kevin00 1007. 测测你的memset Compile Error 0 0 ns 0 KB C++ 231 B
提交时间 评测时间
2019-05-30 14:38:09 2020-08-01 01:38:57
void my_memset(char *a, char c, unsigned n) {

	int m=(n+7)/8;
	switch(n%8){
	case 0 :
	do{*a++=c;
	case 7:*a++=c;
	case 6:*a++=c;
	case 5:*a++=c;
	case 4:*a++=c;
	case 3:*a++=c;
	case 2:*a++=c;
	case 1:*a++=c;
	}while(--m>0);}

}

CompilationN/AN/ACompile ErrorScore: N/A


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