提交记录 21778
提交时间 |
评测时间 |
2024-05-16 00:24:48 |
2024-05-16 00:24:55 |
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
typedef pair<int, int> PII;
const int N = 2e8 + 10, M = 256;
unsigned b[N];
int d[M];
void sort(unsigned *a, int n){
for(int i = 0; i < 4; i ++ ){
int t = i << 3;
for(int j = 0; j < M; j ++ ) d[j] = 0;
for(int j = 0; j < n; j ++ ) d[a[j] >> t & M - 1] ++ ;
for(int j = 1; j < M; j ++ ) d[j] += d[j - 1];
for(int j = n - 1; j >= 0; j -- ) b[ -- d[a[j] >> t & M - 1]] = a[j];
memcpy(a, b, sizeof(int) * n);
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 1.215 ms | 820 KB | Accepted | Score: 34 | 显示更多 |
Testcase #2 | 1.437 s | 762 MB + 996 KB | Accepted | Score: 33 | 显示更多 |
Testcase #3 | 2.873 s | 1525 MB + 932 KB | Accepted | Score: 33 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-22 05:52:40 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠