Cod sursa(job #2029443)
Utilizator | Data | 30 septembrie 2017 09:45:44 | |
---|---|---|---|
Problema | Sortare prin comparare | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.18 kb |
#include<bits/stdc++.h>
std::ifstream f("algsort.in");std::ofstream g("algsort.out");int n,i,v[500005];int main(){f>>n;for(;i<n;i++)f>>v[i];std:sort(v,v+n);for(;i<n;i++)g<<v[i]<<' ';}