Cod sursa(job #2410200)

Utilizator LucaSeriSeritan Luca LucaSeri Data 19 aprilie 2019 20:00:28
Problema Sortare prin comparare Scor 100
Compilator cpp-64 Status done
Runda Arhiva educationala Marime 0.4 kb
#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;
}