提交记录 17160
提交时间 |
评测时间 |
2021-12-02 17:22:19 |
2021-12-02 17:22:23 |
#define For(i,l,r) for(int i=l;i<=r;i++)
#define FOR(i,l,r) for(int i=l;i>=r;i--)
void sort(unsigned*a,int n)
{
unsigned*b=new unsigned[n];
For(k,0,3)
{
unsigned*cnt=new unsigned[256]();For(i,0,n-1)cnt[(a[i]>>(k<<3))&255]++,b[i]=a[i];
For(i,1,255)cnt[i]+=cnt[i-1];FOR(i,n-1,0)a[--cnt[(b[i]>>(k<<3))&255]]=b[i];
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 1.178 ms | 804 KB | Accepted | Score: 34 | 显示更多 |
Testcase #2 | 1.295 s | 762 MB + 988 KB | Accepted | Score: 33 | 显示更多 |
Testcase #3 | 2.613 s | 1525 MB + 924 KB | Accepted | Score: 33 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-22 05:45:15 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠