Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Recent
Login
Problem2138--Sort
2138: Sort
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
90
Solved:
2
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
Use quick sort to sort numbers in decreasing order. For example, the array [1,2,3] will print 3 2 1 after sorting.
Input
Given a array
Output
Array sorted in decreasing order
Sample Input
Copy
1 -2 3
Sample Output
Copy
3 1 -2
Source/Category
187