Cod sursa(job #514024)
| Utilizator | Data | 17 decembrie 2010 16:31:17 | |
|---|---|---|---|
| Problema | Sortare prin comparare | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva educationala | Marime | 0.42 kb |
# include <algorithm>
# include <cstdio>
const char *FIN = "algsort.in", *FOU = "algsort.out";
int V[500005], N ;
int main ( void ) {
freopen ( FIN, "r", stdin ) ;
freopen ( FOU, "w", stdout ) ;
scanf ( "%d", &N ) ;
for ( int i = 1; i <= N; ++i )
scanf( "%d", V + i ) ;
std :: sort ( V + 1, V + N + 1 ) ;
for ( int i = 1; i <= N; ++i )
printf( "%d ", V[i] );
}
