提交记录 9426


用户 题目 状态 得分 用时 内存 语言 代码长度
Izumi_Sagiri 1001. 测测你的排序 Compile Error 0 0 ns 0 KB C++ 587 B
提交时间 评测时间
2019-05-09 15:20:15 2020-08-01 01:37:43
#include <algorithm>

void sort(unsigned *a, int n) {
    for(register unsigned *i = a + 1; i != ae; ++i)
        ++cnt1[*i & 0xffff];
    for(register unsigned *i = cnt1 + 1; i != cnte1; ++i)
        *i += *(i - 1);
    for(register unsigned *i = ae - 1; i != a; --i)
        tmp[cnt1[*i & 0xffff]--] = *i;

    for(register unsigned *i = tmp + 1; i != tmpe; ++i)
        ++cnt2[(*i >> 16) & 0xffff];
    for(register unsigned *i = cnt2 + 1; i != cnte2; ++i)
        *i += *(i - 1);
    for(register unsigned *i = tmpe - 1; i != tmp; --i)
        a[cnt2[(*i >> 16) & 0xffff]--] = *i;
}

CompilationN/AN/ACompile ErrorScore: N/A


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