#T802. 排序练习

排序练习

Description

Enter an integer n followed by n integers, then sort and output them. (1 ≤ n ≤ 5000)

Input Format

Line 1: An integer n
Line 2: n integers separated by spaces, all within the integer range.

Output Format

One line: n sorted integers

5
1 2 3 4 5

5 4 3 2 1

译文

CodesOnline