提交记录 12223
| 用户 | 题目 | 状态 | 得分 | 用时 | 内存 | 语言 | 代码长度 |
|---|---|---|---|---|---|---|---|
| user1 | 1007. 测测你的memset | Compile Error | 0 | 0 ns | 0 KB | C++11 | 246 B |
| 提交时间 | 评测时间 |
|---|---|
| 2020-03-17 02:02:01 | 2020-08-01 02:52:49 |
#include<string.h>
inline void m(int q, int* a, unsigned n) {
n&=~31;
while(n){a[0]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=q;n-=32;a+=8;}
}
void my_memset(char *a, char c, unsigned n) {
while(31&(int)a)*a++=c,--n;
int q=c*0x1010101;
m(q,(int*)a,n);
}
| Compilation | N/A | N/A | Compile Error | Score: N/A | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-26 10:15:45 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠