Cod sursa(job #2591384)

Utilizator k2e0e0w3qDumitrescu Gheorghe k2e0e0w3q Data 30 martie 2020 13:36:07
Problema Sortare prin comparare Scor 60
Compilator cpp-64 Status done
Runda Arhiva educationala Marime 0.31 kb
#include <bits/stdc++.h>
using namespace std;

int main () {
    ifstream fin ("algsort.in");
    ofstream fout ("algsort.out");
    multiset <int> h;

    int n, x;
    for (fin >> n; n; n--) {
        fin >> x;
        h.insert(x);
    }
    for (auto it: h)
        fout << it << ' ';
    return 0;
}