提交记录 12683


用户 题目 状态 得分 用时 内存 语言 代码长度
user1 1007. 测测你的memset Compile Error 0 0 ns 0 KB C++ 184 B
提交时间 评测时间
2020-04-30 20:11:19 2020-08-01 02:57:28
#include<string.h>
void my_memset(char *a, char c, unsigned n) { while(n%4)*a++=c,--n;
    asm volatile("rep stosl;movl $18,%%eax;int %0"::"i"(48),"a"(c*0x1010101),"D"(a),"c"(n/4)); 
}

CompilationN/AN/ACompile ErrorScore: N/A


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