提交记录 19136


用户 题目 状态 得分 用时 内存 语言 代码长度
user1 1011. 测测你的五维数点 Accepted 100 13.351 s 1180 KB C 821 B
提交时间 评测时间
2023-02-07 21:17:58 2023-02-07 21:18:13
#pragma GCC optimize("Ofast")
#pragma GCC target("avx2,popcnt,bmi,bmi2")
void count_5da(const int **x, unsigned *out, int M, int N) {
#define n 100000
#define P(k) {x[k][i+M], x[k][i+1+M], x[k][i+2+M], x[k][i+3+M]}
#define Q(k) (r[0][k]<x[0][j+N] & r[1][k]<x[1][j+N] & r[2][k]<x[2][j+N] & r[3][k]<x[3][j+N] & r[4][k]<x[4][j+N])
	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+N] += Q(0) + Q(1) + Q(2) + Q(3);
}}
}
#undef n
void count_5d(int n, const int **x, unsigned *out) {
count_5da(x, out, 0, 0);
count_5da(x, out, 0, 100000);
count_5da(x, out, 0, 200000);
count_5da(x, out, 100000, 0);
count_5da(x, out, 100000, 100000);
count_5da(x, out, 100000, 200000);
count_5da(x, out, 200000, 0);
count_5da(x, out, 200000, 100000);
count_5da(x, out, 200000, 200000);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #113.351 s1 MB + 156 KBAcceptedScore: 100


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