提交记录 20776


用户 题目 状态 得分 用时 内存 语言 代码长度
lotus_f 1001a. 测测你的排序2 Accepted 100 284.84 us 200 KB C++14 357 B
提交时间 评测时间
2023-12-30 18:08:50 2023-12-30 18:08:52
#include<bits/stdc++.h>
using namespace std;
#define int unsigned
const int siz=10,len=30;
int b[(1<<siz)*len],*p[1<<siz];
void sort(int *a,signed n)
{
	for(int i=0; i<(1<<siz); ++i) p[i]=b+i*len;
	for(int i=0; i<n; ++i) (*p[a[i]>>32-siz]++)=a[i];
	for(int i=0; i<(1<<siz); ++i)
	{
		sort(b+i*len,p[i]);
		int *wz=b+i*len;
		while(wz!=p[i]) *a++=*wz++;
	}
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1284.84 us200 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-05-03 20:26:50 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用