Run ID:61796

提交时间:2023-12-10 17:00:33

#include<iostream> using namespace std; int main() { int t[100001]={0}; int n,shu; cin>>n; for(int i=0;i<n; i++){ cin>>shu; t[shu]++; } int zs=1; for(int i=1;i<=100000;i++){ //if(t[i] != 0){ // cout<<i<<" "; //} for(int j = 0;j < t[i];j++){ cout << i <<' '; } } return 0; }