Sorting Numbers 4
InterviewTime limit2sMemory limit256 MB
Sort N distinct integers in descending order and print one per line.
- Level
Easy3 of 10
- Topics
- Sorting
- Solved
- No attempts yet
Problem
You are given numbers. Write a program that sorts them in descending order.
Input
The first line contains the count of numbers, (). Each of the next lines contains one number to sort. Every number is an integer whose absolute value is at most , and no number is given twice.
Output
Print the numbers in descending order over lines, one number per line.