提交记录 21778


用户 题目 状态 得分 用时 内存 语言 代码长度
lzm0107 wc2017b1. 【WC2017】挑战-任务1 Accepted 100 2.873 s 1562532 KB C++ 566 B
提交时间 评测时间
2024-05-16 00:24:48 2024-05-16 00:24:55
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
typedef pair<int, int> PII;
const int N = 2e8 + 10, M = 256;

unsigned b[N];
int d[M];

void sort(unsigned *a, int n){
    for(int i = 0; i < 4; i ++ ){
        int t = i << 3;
        for(int j = 0; j < M; j ++ ) d[j] = 0;
        for(int j = 0; j < n; j ++ ) d[a[j] >> t & M - 1] ++ ;
        for(int j = 1; j < M; j ++ ) d[j] += d[j - 1];
        for(int j = n - 1; j >= 0; j -- ) b[ -- d[a[j] >> t & M - 1]] = a[j];
        memcpy(a, b, sizeof(int) * n);
    }
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #11.215 ms820 KBAcceptedScore: 34

Testcase #21.437 s762 MB + 996 KBAcceptedScore: 33

Testcase #32.873 s1525 MB + 932 KBAcceptedScore: 33


Judge Duck Online | 评测鸭在线
Server Time: 2024-11-22 05:52:40 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠