提交记录 16525
提交时间 |
评测时间 |
2021-09-28 23:58:57 |
2021-09-28 23:59:00 |
#pragma GCC optimize("Ofast")
#define idx(i, j) ((i) * n + (j))
#define A0(i) (c[i]+=a*b[i])
#define A1(i) A0(i), A0(i+1)
#define A2(i) A1(i), A1(i+(1<<1))
#define A3(i) A2(i), A2(i+(1<<2))
#define A4(i) A3(i), A3(i+(1<<3))
void matrix_multiply(int n, const double *A, const double *B, double *C) {
for(int i=0; i<n*n; ++i) C[i]=0;
for (int i = 0; i < n; i++) {
for (int k = 0; k < n; k++) {
double *c=C+i*n;
const double a=A[idx(i, k)], *b=B+k*n;
for (int j = 0; j < n; j+=16) {
A4(j);
}
}
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 445.924 ms | 8 MB + 8 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-10-05 12:03:55 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用