Cod sursa(job #1958697)

Utilizator al_k_ponyClaudiu Babin al_k_pony Data 8 aprilie 2017 17:12:46
Problema Sortare prin comparare Scor 60
Compilator cpp Status done
Runda Arhiva educationala Marime 0.55 kb
# include <bits/stdc++.h>
# define maxn 100001
# define ll long long
# define clock (clock() * 1000.0 / CLOCKS_PER_SEC)
# define rc(s) return cout << s,0
# define _ ios_base::sync_with_stdio(false);cin.tie(0);cerr.tie(0);cout.tie(0);
# define pb push_back
# define mp make_pair
//# define int ll
using namespace std;

int n,x;
multiset<int>ms;

int32_t main(){_
    freopen("algsort.in","r",stdin);
    freopen("algsort.out","w",stdout);
    cin >> n;
    for(int i = 1;i <= n;i ++)
    {
		cin >> x;
		ms.insert(x);
	}
	for(auto it : ms) cout << it << ' ';
}