提交记录 62357


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 1001c. 测测你的排序4 Wrong Answer 0 2.168 s 525324 KB C++17 436 B
提交时间 评测时间
2026-09-19 23:27:13 2026-09-19 23:58:23
#include <stdlib.h>
#include <string.h>
static unsigned fill[256];
void sort(unsigned *a, int n) {
    unsigned stride = (unsigned)((n >> 8) + (n >> 9) + 16384);
    unsigned *tmp = (unsigned *)malloc((size_t)stride * 256u * 4u);
    if (!tmp) return;
    memset(fill, 0, sizeof(fill));
    for (int i = 0; i < n; i++) {
        unsigned v = a[i]; unsigned b = v >> 24;
        tmp[(size_t)b * stride + fill[b]] = v; fill[b]++;
    }
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #12.168 s513 MB + 12 KBWrong AnswerScore: 0


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