提交记录 12121


用户 题目 状态 得分 用时 内存 语言 代码长度
ahcch2006 1001. 测测你的排序 Runtime Error 0 36.69 us 36 KB C++ 308 B
提交时间 评测时间
2020-03-15 01:10:48 2020-08-01 02:51:39
#include <bits/stdc++.h>
using namespace std;
int qzh[100000005],ans[100000005],mx;
void sort(unsigned *a, int n)
{
    for(int i=0;i<n;i++) ++qzh[a[i]], mx=max(mx,(int)a[i]);
    for(int i=1;i<=mx;i++) qzh[i]+=qzh[i-1];
    for(int i=0;i<n;i++) ans[--qzh[a[i]]]=a[i];
    for(int i=0;i<n;i++) a[i]=ans[i];
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #136.69 us36 KBRuntime ErrorScore: 0


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