Pagini recente » Cod sursa (job #1073920) | Cod sursa (job #2239772) | Cod sursa (job #2293903) | Cod sursa (job #2180581) | 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;
}