Run ID:88161

提交时间:2024-08-18 10:34:56

#include<bits/stdc++.h> using namespace std; int a[100001],n,c; int main() { cin>>n; for(int i=0; i<=n-1; i++) { cin>>c; a[c]++; } for(int i=0; i<=100000; i++) { if(a[i]!=0){ for(int ci=0;ci<a[i];ci++){ cout<<i<<" "; } } } return 0; }