提交记录 16912


用户 题目 状态 得分 用时 内存 语言 代码长度
Wallbreaker5th 1007. 测测你的memset Compile Error 0 0 ns 0 KB C++ 263 B
提交时间 评测时间
2021-11-02 09:09:10 2021-11-02 09:09:11
void my_memset(char *a, char c, unsigned n) {
	typedef unsigned long long int ull;
	char b[8];
	for(int i=0;i<8;i++)b[i]=c;
	ull x=(*ull)(b);
	unsigned m=n/8;
	for(unsigned i = 0; i < m; i++)
		((ull*)(a))[i] = x;
	for(unsigned i = m*8; i < n; i++)
		a[i] = c;
}

CompilationN/AN/ACompile ErrorScore: N/A


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