提交记录 5753
| 提交时间 |
评测时间 |
| 2018-09-02 18:36:16 |
2020-08-01 00:28:53 |
#include "immintrin.h"
void my_memset(char *a, char c, unsigned n) {
__m256i s;
for(unsigned i=0;i<32;i++)((char*)&s)[i]=c;
while(reinterpret_cast<unsigned long long>(a)&31)*a++=c,n--;
while(n&255)a[--n]=c;
__m256i*b=(__m256i*)a;
n>>=5;
for(unsigned i = 0; i != n; i+=8)
{
b[i]=s;
b[i+1]=s;
b[i+2]=s;
b[i+3]=s;
b[i+4]=s;
b[i+5]=s;
b[i+6]=s;
b[i+7]=s;
}
for(unsigned i = 0; i < n; i++)
a[i] = c;
}
| Compilation | N/A | N/A | Compile Error | Score: N/A | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-11 08:39:21 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠