Cod sursa(job #2669408)
| Utilizator | Data | 6 noiembrie 2020 21:25:53 | |
|---|---|---|---|
| Problema | Sortare prin comparare | Scor | 0 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva educationala | Marime | 0.28 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin("algsort.in");
ofstream fout("algsort.out");
int main() {
fin >> N;
vector < int > a(N);
for(int& x : a)
cin >> x;
sort(a.begin(), a.end());
for(int x : a)
fout << x << ' ';
}
