提交记录 31439


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_260814 1001a. 测测你的排序2 Wrong Answer 0 23.16 us 12 KB C 756 B
提交时间 评测时间
2026-08-14 01:57:12 2026-08-14 01:57:22
typedef unsigned int u32;
typedef unsigned short u16;
#define N 10000
void sort(u32 *__restrict__ a, int n) {
    (void)n;
    static u32 tmp[N];
    u16 c1[256], c2[256], c3[256], c4[256];
    for (int i=0;i<256;i++){c1[i]=c2[i]=c3[i]=c4[i]=0;}
    for (int i=0; i<N; i+=4) {
        u32 x0=a[i], x1=a[i+1], x2=a[i+2], x3=a[i+3];
        c1[x0&255]++; c2[(x0>>8)&255]++; c3[(x0>>16)&255]++; c4[x0>>24]++;
        c1[x1&255]++; c2[(x1>>8)&255]++; c3[(x1>>16)&255]++; c4[x1>>24]++;
        c1[x2&255]++; c2[(x2>>8)&255]++; c3[(x2>>16)&255]++; c4[x2>>24]++;
        c1[x3&255]++; c2[(x3>>8)&255]++; c3[(x3>>16)&255]++; c4[x3>>24]++;
    }
    // no distribute (WA but measures histogram time)
    tmp[0] = c1[0] + c2[0] + c3[0] + c4[0];
    a[0] = tmp[0];
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #123.16 us12 KBWrong AnswerScore: 0


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