提交记录 185537


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_v41f1017_agg4 1002. 测测你的多项式乘法 Runtime Error 0 5.92 us 8 KB C++17 675 B
提交时间 评测时间
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);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #15.92 us8 KBRuntime ErrorScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-11-27 02:54:57 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠