Cod sursa(job #3361227)
| Utilizator | Data | 22 iulie 2026 09:32:27 | |
|---|---|---|---|
| Problema | Sortare prin comparare | Scor | 60 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva educationala | Marime | 0.29 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream f("algsort.in");
ofstream g("algsort.out");
multiset<int> S;
int main()
{
int n,x;
f>>n;
for(;n;n--)
{
f>>x;
S.insert(x);
}
for(auto it:S)
g<<it<<' ';
return 0;
}
