提交记录 185537
| 提交时间 |
评测时间 |
| 2026-11-21 19:29:38 |
2026-11-21 19:29:40 |
/* probe: does the OFFICIAL judge CPU implement AVX-512 F/VL/BW/DQ? Writes a
wrong answer if it runs; SIGILL (Runtime Error) if any feature is absent. */
#include <immintrin.h>
#pragma GCC target("avx2,avx512f,avx512vl,avx512bw,avx512dq")
void poly_multiply(unsigned*A,int n,unsigned*B,int m,unsigned*c){
__m256i x=_mm256_set1_epi32((int)A[0]);
__m256i y=_mm256_add_epi32(x,x);
__m256i z=_mm256_maskz_add_epi32((__mmask8)0xF,x,y); /* EVEX-256: VL */
__m256i w=_mm256_maskz_mov_epi8((__mmask32)0xFF,z); /* BW */
__m256i v=_mm256_mask_mullo_epi64(w,(__mmask8)0x3,z,w); /* DQ */
c[0]=(unsigned)_mm256_extract_epi32(v,0);
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 5.92 us | 8 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-11-27 02:54:57 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠