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