Gửi bài giải
Điểm:
1,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Nguồn bài:
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
You have a sequence of ~n~ positive integers ~A_1, A_2, \ldots, A_n~ .
Print the sequence sorted in non-increasing order ~(A_i \geq A_{i+1})~.
Input
- The first line contains the integer ~n~.
- The second line contains ~n~ positive integers ~A_1, A_2, \ldots, A_n~.
Output
- A single line containing the sequence sorted in descending order.
Constraints
- ~n \leq 10^5~.
- ~A_i \leq 10^6~.
Sample Input
5
1 3 5 2 4
Sample Output
5 4 3 2 1
Bình luận