提交记录 8097
| 提交时间 |
评测时间 |
| 2019-01-28 21:35:52 |
2020-08-01 01:12:48 |
unsigned _b[100000005];
unsigned cnt[256],*b=_b;
void sort(unsigned *a, int n){
const int S = 8;
int i;
for (i = 0; i < 32; i += S) {
for (int j = 0; j < 256; j++) cnt[j] = 0;
int t = (1 << S) - 1;
for (int j = 0; j < n; j++) ++cnt[(a[j] >> i) & t];
for (int j = 1; j < 1 << S; j++) cnt[j] += cnt[j - 1];
for (int j = n - 1; j >= 0; j--) b[--cnt[(a[j] >> i) & t]] = a[j];
unsigned *tmp = a;
a = b, b = tmp;
}
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 936.093 ms | 762 MB + 972 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-07 09:45:13 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠