提交记录 19129
提交时间 |
评测时间 |
2023-02-07 21:01:42 |
2023-02-07 21:01:46 |
#pragma GCC optimize("Ofast")
#pragma GCC target("avx2,popcnt,bmi,bmi2")
void count_5d(int n, const int **x, unsigned *out) {
#define n 100000
#define P(k) {x[k][i], x[k][i+1], x[k][i+2], x[k][i+3]}
#define Q(k) (r[0][k]<x[0][j] & r[1][k]<x[1][j] & r[2][k]<x[2][j] & r[3][k]<x[3][j] & r[4][k]<x[4][j])
for (int i=0; i<n; i+=4) { int r[5][4] = {P(0), P(1), P(2), P(3), P(4)}; for (int j=0; j<n; ++j) {
out[j] += Q(0) + Q(1) + Q(2) + Q(3);
}}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 1.488 s | 400 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-12-05 10:35:22 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠