提交记录 12330
| 用户 | 题目 | 状态 | 得分 | 用时 | 内存 | 语言 | 代码长度 |
|---|---|---|---|---|---|---|---|
| Eqvpkbz | 1001. 测测你的排序 | Compile Error | 0 | 0 ns | 0 KB | C++ | 707 B |
| 提交时间 | 评测时间 |
|---|---|
| 2020-03-22 16:24:08 | 2020-08-01 02:53:54 |
unsigned b[N],*rs[D],t0[D],t1[D],t2[D],t3[D];
void sort(unsigned *a, int n){
#define N 100000000
#define D 256
#define D1 255
#define cal(w,w2,tw,op)\
p=w2-1;\
for(i=0;i<D;++i)rs[i]=p,p+=tw[i];\
for(i=0;i<N;i+=8){\
p=w+i;\
*++rs[p[0]op]=p[0];\
*++rs[p[1]op]=p[1];\
*++rs[p[2]op]=p[2];\
*++rs[p[3]op]=p[3];\
*++rs[p[4]op]=p[4];\
*++rs[p[5]op]=p[5];\
*++rs[p[6]op]=p[6];\
*++rs[p[7]op]=p[7];\
}
register unsigned*p,i,x;
for(i=0;i<N;){
#define A x=a[i];++t0[x&D1];++t1[x>>8&D1];++t2[x>>16&D1];++t3[x>>24];++i;
A A A A
}
cal(a,b,t0,&D1);
cal(b,a,t1,>>8&D1);
cal(a,b,t2,>>16&D1);
cal(b,a,t3,>>24);
}
| Compilation | N/A | N/A | Compile Error | Score: N/A | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-26 06:29:16 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠