| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61135 | 黎瑾萱 | 19从小到大进行排序 | C++ | Output Limit Exceeded | 1 MS | 660 KB | 294 | 2023-12-02 15:58:54 |
#include<iostream> using namespace std; int a[200001],b[100001]={0}; int main(){ int n,m; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; b[a[i]]++; if(m<a[i]){ m = a[i]; } } for(int i=0;i<=m;i++){ while(b[i]>0){ cout<<i<<" "; b[i]--; } } return 0; }