Pagini recente » Cod sursa (job #1851726) | Monitorul de evaluare | Cod sursa (job #1702836) | Cod sursa (job #1622169) | Cod sursa (job #2410200)
#include <bits/stdc++.h>
using namespace std;
int main() {
#ifdef BLAT
freopen("input", "r", stdin);
#else
freopen("algsort.in", "r", stdin);
freopen("algsort.out", "w", stdout);
#endif
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
vector< int > v(n);
for(auto &x : v) cin >> x;
sort(v.begin(), v.end());
for(auto &x : v) cout << x << ' ';
return 0;
}