| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61540 | 杨莹斌 | 19从小到大进行排序 | C++ | Accepted | 1 MS | 660 KB | 278 | 2023-12-10 10:59:42 |
#include<iostream> using namespace std; int main() { int n,tmp; cin >> n; int t[100001] = {}; for(int i = 0;i < n;i++){ cin >> tmp; t[tmp]++; } for(int i = 0;i <= 10000;i++){ for(int j = 0;j < t[i];j++){ cout << i <<" "; } } return 0; }