提交记录 28043
提交时间 |
评测时间 |
2025-03-29 23:54:24 |
2025-03-29 23:54:41 |
#include <bits/stdc++.h>
using namespace std;
void sort(unsigned *a, int n) {
int r=1<<20;unsigned int d=1,ma=0;
queue<int> q[r];
for(int i=1;i<=n;i++)
ma=max(a[i],ma);
while(d<=ma){
for(int i=1;i<=n;i++){
q[a[i]/d%r].push(a[i]);
}
for(int i=0,j=1;i<r;i++){
while(!q[i].empty()){
a[j++]=q[i].front();
q[i].pop();
}
}
d*=r;
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 12.363 s | 1575 MB + 360 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-04-01 15:35:02 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠