Cod sursa(job #1331968)
| Utilizator | Data | 1 februarie 2015 14:38:47 | |
|---|---|---|---|
| Problema | Sortare prin comparare | Scor | 60 |
| Compilator | cpp | Status | done |
| Runda | Arhiva educationala | Marime | 0.27 kb |
#include <set>
#include <fstream>
using namespace std;
int n, x;
multiset <int> S;
int main() {
ifstream f("algsort.in");
ofstream g("algsort.out");
f>>n;
while(n--)
f>>x,
S.insert(x);
for(auto x: S) g<<x<<" ";
g<<"\n";
return 0;
}
