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