Cod sursa(job #337179)
Utilizator | Data | 2 august 2009 20:31:19 | |
---|---|---|---|
Problema | Sortare prin comparare | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.3 kb |
#include<algorithm>
#include<stdio.h>
using namespace std;
int v[500000],N;
int main()
{
freopen("algsort.in","r",stdin);
freopen("algsort.out","w",stdout);
scanf("%d",&N);
for(int j=0;j<N;++j)
scanf("%d",&v[j]);
sort(v,v+N);
for(int i=0;i<N;++i)
printf("%d ",v[i]);
return 0;
}