| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61128 | 刘轻松 | 19从小到大进行排序 | C++ | Accepted | 1 MS | 272 KB | 352 | 2023-12-02 15:53:21 |
# include<iostream> #include<cstdio> using namespace std; int a[200001],b[100001]={0}; int main(){ int n,max=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; b[a[i]]++; if(max<a[i]){ max = a[i]; } } //输出 for(int i=0;i<=max;i++){ while(b[i]>0){ cout<<i<<' '; b[i]--; } } return 0; }