Cod sursa(job #2184976)
Utilizator | Data | 24 martie 2018 12:20:57 | |
---|---|---|---|
Problema | Sortare prin comparare | Scor | 80 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.34 kb |
#include<bits/stdc++.h>
using namespace std;
ifstream in("algsort.in");
ofstream out("algsort.out");
int main()
{
multiset<long long> s;
int n;
in>>n;
int x;
for(int i=0;i< n;i++){
in>>x;
s.insert(x);
}
for(auto it:s){
out<<it<<" ";
}
in.close();
out.close();
}