Cod sursa(job #2006573)
Utilizator | Data | 30 iulie 2017 19:31:50 | |
---|---|---|---|
Problema | Sortare prin comparare | Scor | 60 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.33 kb |
#include <bits/stdc++.h>
using namespace std;
multiset<int> s;
int main()
{
ifstream fin ("algsort.in");
ofstream fout ("algsort.out");
int x;
fin >> x;
while(fin >> x)
s.insert(x);
for(multiset<int>::iterator it = s.begin(); it != s.end(); ++it)
fout << *it << " ";
fin.close();
return 0;
}