Cod sursa(job #2980001)
| Utilizator | Data | 16 februarie 2023 09:49:58 | |
|---|---|---|---|
| Problema | Sortare prin comparare | Scor | 0 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva educationala | Marime | 0.46 kb |
/// [A][M][C][B][N] ///
#include <bits/stdc++.h>
const int mod = 1e9 + 7;
const int inf = 0x3f3f3f3f;
const char sp = ' ', nl = '\n';
using namespace std;
ifstream fin("algsort.in");
ofstream fout("algsort.out");
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
fin >> n;
vector<int> v(n);
for (auto& x : v) {
fin >> x;
}
sort(v.begin(), v.end());
for (auto& x : v) {
fout << x;
}
}