Cod sursa(job #2676617)

Utilizator Iustin01Isciuc Iustin - Constantin Iustin01 Data 24 noiembrie 2020 18:08:55
Problema Sortare prin comparare Scor 100
Compilator cpp-64 Status done
Runda Arhiva educationala Marime 0.31 kb
#include <bits/stdc++.h>
using namespace std;

ifstream in("algsort.in");
ofstream out("algsort.out");

vector < int > v;

int n, x;

int main(){
    in>>n;
    while(n--){
        in>>x;
        v.push_back(x);
    }
    sort(v.begin(), v.end());
    for(auto it : v)
        out<<it<<" ";
}