提交记录 8090


用户 题目 状态 得分 用时 内存 语言 代码长度
flwfdd 1001. 测测你的排序 Compile Error 0 0 ns 0 KB C++ 285 B
提交时间 评测时间
2019-01-28 20:18:16 2020-08-01 01:12:24
unsigned b[100000001],cnt[256];
void sort(unsigned *a, int n) {
	for(int i=0;i<32;i+=8)
	{
		unsigned t=(i<8)-1;
		for(int j=0;j<n;j++) cnt[(a[j]>>i)&t]++;
		for(int j=1;j<256;j++) cnt[j]+=cnt[j-1];
		for(int j=n-1;j>=0;j--) b[--cnt[(a[j]>>i)&t]]=a[j];
		unsigned *m=a;
		a=b,b=m;
	}
}

CompilationN/AN/ACompile ErrorScore: N/A


Judge Duck Online | 评测鸭在线
Server Time: 2026-04-07 09:48:39 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠