Cod sursa(job #2591386)

Utilizator k2e0e0w3qDumitrescu Gheorghe k2e0e0w3q Data 30 martie 2020 13:36:37
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;

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

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