Create 1913.cpp

This commit is contained in:
Kirigaya Kazuto 2016-12-09 23:35:45 +08:00 committed by GitHub
parent 6d3250fb4f
commit 7006f84a9e

22
QUSTOJ/1913.cpp Normal file
View File

@ -0,0 +1,22 @@
#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;
}