提交记录 12394


用户 题目 状态 得分 用时 内存 语言 代码长度
bjq 1001. 测测你的排序 Compile Error 0 0 ns 0 KB C++11 293 B
提交时间 评测时间
2020-04-04 16:13:43 2020-08-01 02:54:39
#include <bits/stdc++.h>

using namespace std;

const int N = 100000010;

int tot[N], idx = 0, i = 0, ma = 0, mi = 1e9;

void sort(unsigned *a, int n) {
	for (auto i : a) {
		ma = max(i, ma);
		mi = min(i, mi);
		tot[i]++;
	}
	for (int i = mi; i <= ma; i++) 
		while (tot[i]--) a[idx++] = i;
}

CompilationN/AN/ACompile ErrorScore: N/A


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