提交记录 28042
提交时间 |
评测时间 |
2025-03-29 23:53:32 |
2025-03-29 23:53:38 |
#include <bits/stdc++.h>
using namespace std;
void sort(unsigned *a, int n) {
int r=1<<15;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 | 1.796 s | 1072 MB + 84 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-04-01 15:40:39 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠