Cod sursa(job #2669409)

Utilizator Alex_tz307Lorintz Alexandru Alex_tz307 Data 6 noiembrie 2020 21:26:14
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("algsort.in");
ofstream fout("algsort.out");

int main() {
    int N;
    fin >> N;
    vector < int > a(N);
    for(int& x : a)
        cin >> x;
    sort(a.begin(), a.end());
    for(int x : a)
        fout << x << ' ';
}