mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1913.cpp
This commit is contained in:
parent
6d3250fb4f
commit
7006f84a9e
22
QUSTOJ/1913.cpp
Normal file
22
QUSTOJ/1913.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user