Run ID:61542

提交时间:2023-12-10 11:02:05

#include <bits/stdc++.h> using namespace std; int main() { int n, tmp; cin>> n; int t[100001]= {0}; for(int i=0; i<n; i++) { cin>>tmp; t[tmp]++; } for(int i=0; i<=100000; i++) { for(int j=0; j<t[i]; i++) { cout<<i<<" "; } } }