Descending order
As you are already familiar with
split()
for strings and some utility functions for lists, now you can process inputs that have multiple values on a single line.Given several numbers on a single line, your task is to sort them in descending order and print them on a single line in the output.
Input | Output |
5 1 4 3 0 -1 | 5 4 3 1 0 -1 |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB