提交记录 19267
提交时间 |
评测时间 |
2023-03-12 14:52:55 |
2023-03-12 14:52:59 |
#define idx(i, j) ((i) * n + (j))
#define fA(p) *(c + p) += x * *(b + p)
#define fB(p) fA(p + 0), fA(p + 1)
#define fC(p) fB(p + 0), fB(p + 2)
#define fD(p) fC(p + 0), fC(p + 4)
#define fE(p) fD(p + 0), fD(p + 8)
void matrix_multiply(int n, const double *A, const double *B, double *C) {
for (int i = 0; i < n; i++) for (int k = 0; k < n; k++) {
double x = A[idx(i, k)], *c = C + i * n; const double *b = B + k * n;
for (int j = 0; j < n; j += 16) fE(j);
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 619.379 ms | 8 MB + 8 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-12-05 10:16:40 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠