Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7106 | 刘芃伽 | 19从小到大进行排序 | C++ | Accepted | 0 MS | 660 KB | 324 | 2025-04-05 09:48:40 |
#include<bits/stdc++.h> #include<cstdio> using namespace std; int main(){ int a[100001]={}; int n,temp; cin>>n; for(int i=1;i<=n;i++){ cin>>temp; a[temp]++; } for(int i=0;i<=100000;i++){ while(a[i]--){ cout<<i<<" "; } } return 0; }