提交记录 21777
提交时间 |
评测时间 |
2024-05-16 00:23:08 |
2024-05-16 00:23:14 |
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
typedef pair<int, int> PII;
const int N = 1e8 + 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.127 s | 762 MB + 996 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-24 00:10:47 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠