OJ-Problems-Source/QUSTOJ/1913.cpp

23 lines
346 B
C++
Raw Normal View History

2016-12-09 23:35:45 +08:00
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
using namespace std;
int a[110000];
int main()
{
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
sort(a,a+n);
for(int i=n-1;i>0;--i)
{
printf("%d ",a[i]);
}
printf("%d\n",a[0]);
return 0;
}