提交记录 61874


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 1001c. 测测你的排序4 Wrong Answer 0 1.875 s 525324 KB C++17 435 B
提交时间 评测时间
2026-09-19 23:24:36 2026-09-19 23:24:42
#include <stdlib.h>
#include <string.h>
static unsigned fill[256];
void sort(unsigned *a, int n) {
    unsigned stride = (unsigned)((n >> 8) + (n >> 9) + 8192);
    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 #11.875 s513 MB + 12 KBWrong AnswerScore: 0


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