Cod sursa(job #3252616)
| Utilizator | Data | 30 octombrie 2024 12:02:36 | |
|---|---|---|---|
| Problema | Sortare prin comparare | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva educationala | Marime | 0.4 kb |
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define MAX 500000
using namespace std;
ifstream fin("algsort.in");
ofstream fout("algsort.out");
int32_t n, i, a[MAX];
int main()
{
ios_base::sync_with_stdio(false);
fin.tie(nullptr);
fout.tie(nullptr);
fin >> n;
for(i=0; i < n; i++) fin >> a[i];
sort(a, a+n);
for(i=0; i < n; i++) fout << a[i] << ' ';
}
