提交记录 11357
提交时间 |
评测时间 |
2019-12-08 14:38:01 |
2020-08-01 02:42:42 |
typedef unsigned int u32;
u32 c[257],tmp[100000000];
void sort(u32 *a, int n) {
for(register int i = 0; i < 32; i += 8) {
for(register int j = 0; j < n; ++ j) ++ c[((a[j] >> i) & 255)];
for(register int j = 1; j < 256; ++ j) c[j] += c[j - 1];
for(register int j = n - 1; j >= 0; -- j) tmp[-- c[((a[j] >> i) & 255)]] = a[j];
for(register int j = 1; j < 256; ++ j) c[j] = 0;
for(register int j = 0; j < n; ++ j) a[j] = tmp[j];
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 1.138 s | 762 MB + 972 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-24 00:10:09 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠