提交记录 9215


用户 题目 状态 得分 用时 内存 语言 代码长度
ffffxk 1001. 测测你的排序 Compile Error 0 0 ns 0 KB C++ 829 B
提交时间 评测时间
2019-04-20 09:38:12 2020-08-01 01:34:14
#include "interactor.h"
#define N 100000010
int b[N];
#define wys(cnt,op)                             \
    int chc=-1;                                 \
    for(i=0;i<256;++i) pos[i]=B+chc,sum+=cnt[i];\
    for(i=0;i<n;i+=4){                          \
        *(++pos[A[i]op])=A[i]                   \
        *(++pos[A[i+1]op])=A[i+1]               \
        *(++pos[A[i+2]op])=A[i+2]               \
        *(++pos[A[i+3]op])=A[i+3]               \
    }                                           \
    T=A;A=B;B=T;
void sort(unsigned int *a, int n){
    register unsigned int i;
    for(i=0;i<n;++i)
        b0[a[i]&255]++;
        b1[a[i]>>8&255]++;
        b2[a[i]>>16&255]++;
        b3[a[i]>>24&255]++;
    unsigned int *A=a,*B=b,*T;
    gao(b0,&255);
    gao(b1,>>8&255);
    gao(b2,>>16&255);
    gao(b3,>>24&&255);
}

CompilationN/AN/ACompile ErrorScore: N/A


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