Cod sursa(job #2691423)

Utilizator TheGodFather2131Alexandru Miclea TheGodFather2131 Data 28 decembrie 2020 16:11:05
Problema Sortare prin comparare Scor 100
Compilator cpp-64 Status done
Runda Arhiva educationala Marime 0.82 kb
//ALEXANDRU MICLEA
 
#include <vector>
#include <algorithm>
#include <string>
#include <string.h>
#include <cstring>
#include <queue>
#include <map>
#include <set>
#include <unordered_map>
#include <time.h>
#include <iomanip>
#include <deque>
#include <math.h>
#include <cmath>
#include <assert.h>
#include <stack>
#include <bitset>
#include <random>
#include <chrono>
#include <assert.h>
 
using namespace std;
using ll = long long;
 
#include <fstream>
//ifstream cin("input.in"); ofstream cout("output.out");
ifstream cin("algsort.in"); ofstream cout("algsort.out");
 
//VARIABLES



//FUNCTIONS



//MAIN
 
int main() {
    
    int n; cin >> n;
    vector <int> v(n);
    for (auto& x : v) cin >> x;
    sort(v.begin(), v.end());
    for(auto& x : v) cout << x << ' ';
    
    return 0;
}