Sort a list of numbers in descending order.
The first line on input will be a single integer, n, which represents the amount of numbers in the list. You may assume n will not be greater than 1000.
The second line on input will be n integers, space separated. You may assume all numbers fit in a 32-bit signed integer.
Output the sorted string in a format similar to the second line of input. (space separated integers)
5 2 8 3 1 4
8 4 3 2 1
Subtask | Score |
---|---|
1 | 0 |
2 | 100 |