Pagini recente » Cod sursa (job #1308515) | Cod sursa (job #523972) | Cod sursa (job #2673570) | Cod sursa (job #132517) | Cod sursa (job #2999117)
#include <bits/stdc++.h>
using namespace std;
#define fastread ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)
ifstream fin("algsort.in");
ofstream fout("algsort.out");
const int maxn = 5e5;
int n;
vector<int> a;
void read(){
fin >> n;
for(int i = 1; i <= n; ++i){
int x; fin >> x;
a.push_back(x);
}
}
int main(){
fastread;
read();
sort(a.begin(), a.end());
for(auto x : a)
fout << x << " ";
return 0;
}