Toggle navigation
HUSTOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem D: 排序(从大到小排)
Problem D: 排序(从大到小排)
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MB
Solved: 49
Submit: 58
Statistics
Description
排序(从大到小排)
Input
5 (n个正整数 1<=n<=1000000 )
3 2 1 4 5 (每个数小于1000000)
Output
5 4 3 2 1
Sample Input
Copy
1 5
Sample Output
Copy
5
HINT
n=int(input())
a=list(map(int,input().split()))
a.sort(reverse=1)
for i in a:
print(i,end=" ")