Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
88164 | 田苒彤 | 19从小到大进行排序 | C++ | Accepted | 1 MS | 656 KB | 261 | 2024-08-18 10:48:28 |
#include<bits/stdc++.h> using namespace std; int n,shu; int t[100001]; int main() { cin>>n; for(int i=0;i<=n-1;i++){ cin>>shu; t[shu]++; } for(int i=0;i<=100000;i++){ for(int ci=0;ci<t[i];ci++){ cout<<i<<" "; } } return 0; }