提交记录 125820


用户 题目 状态 得分 用时 内存 语言 代码长度
qwef_ mmmi1k. 测测你的整数矩阵乘法-1k Time Limit Exceeded 0 10 s 932 KB C++ 463 B
提交时间 评测时间
2026-10-11 09:37:27 2026-10-11 09:37:39
#include <bits/stdc++.h>
using namespace std;
typedef unsigned int u32;
constexpr int K=32;
void matrix_multiply(int n,const int *A,const int *B,int *C){
	for(int ii=0;ii<n;ii+=8){
		for(int kk=0;kk<n;kk+=8){
			for(int jj=0;jj<n;jj+=8){
				int pa=ii*n+kk;
				int pb=kk*n+jj;
				int pc=ii*n+jj;
				for(int i=0;i<K;++i){
					for(int k=0;k<K;++k){
						for(int j=0;j<K;++j){
							C[pc+i*n+j]+=(u32)A[pa+i*n+k]*B[pb+k*n+j];
						}
					}
				}
			}
		}
	}
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #110 s932 KBTime Limit ExceededScore: 0


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