Cod sursa(job #2327211)
| Utilizator | Data | 24 ianuarie 2019 15:08:44 | |
|---|---|---|---|
| Problema | Sortare prin comparare | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva educationala | Marime | 0.18 kb |
#import<bits/stdc++.h>
#define k "algsort."
int n,i,v['썐'];std::ifstream f(k"in");std::ofstream g(k"out");main(){for(f>>n;i<n;f>>v[i++]);for(std::sort(v,v+n);i;g<<v[n-i--]<<' ');}