Cod sursa(job #2884497)
| Utilizator | Data | 3 aprilie 2022 20:30:21 | |
|---|---|---|---|
| Problema | Sortare prin comparare | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva educationala | Marime | 0.44 kb |
#include <bits/stdc++.h>
#define ll long long
#define INF 0x3F3F3F3F
using namespace std;
const string fisier = "algsort";
ifstream fin (fisier + ".in");
ofstream fout (fisier + ".out");
int a[500005];
int main(){
ios_base::sync_with_stdio(false);
int n; fin >> n;
for (int i=1; i<=n; i++){
fin >> a[i];
}
sort(a + 1 , a + n + 1);
for (int i=1; i<=n; i++){
fout << a[i] << " ";
}
}
