提交记录 54


用户 题目 状态 得分 用时 内存 语言 代码长度
oxx1108 1001. 测测你的排序 Runtime Error 0 384.11 us 3912 KB C 272 B
提交时间 评测时间
2018-06-20 12:12:26 2020-07-31 20:34:29
void swap(unsigned *a, unsigned *b)
{
	unsigned t = *a; *a = *b; *b = t;
}

void sort(unsigned *a, int n)
{
        int b[1000000]={}, cnt = 0;
	for(int i = 0; i < n; i++)
           b[a[i]]++;
        for (int i = 0; i < 1000000; i++) while(b[i]) b[i]--, a[cnt++] = i;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1384.11 us3 MB + 840 KBRuntime ErrorScore: 0


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