Cod sursa(job #244530)
| Utilizator | Data | 15 ianuarie 2009 12:48:18 | |
|---|---|---|---|
| Problema | Sortare prin comparare | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva educationala | Marime | 0.41 kb |
using namespace std;
#include <bitset>
#include <vector>
#define FOR(i,a,b) for(int i=a;i<=b;++i)
#define pb push_back
int x,N;
vector<int> V;
#define IN "algsort.in"
#define OUT "algsort.out"
int main()
{
freopen(IN,"r",stdin);
freopen(OUT,"w",stdout);
scanf("%d",&N);
FOR(i,0,N-1)
V.pb(scanf("%d",&x)?x:0);
sort(V.begin(),V.end());
FOR(i,0,N-1)
printf("%d ",V[i]);
return 0;
}
