Cod sursa(job #3171470)
Utilizator | Data | 18 noiembrie 2023 21:58:38 | |
---|---|---|---|
Problema | Sortare prin comparare | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.29 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin ("algosort.in");
ofstream fout ("algosort.out");
multiset<int>v;
int main() {
int n, a;
fin >> n;
while (n--) {
fin >> a;
v.insert(a);
}
for (auto it: v)
fout << it << " ";
return 0;
}