← ~/试题
P2011

Sort the Array

Easy
// 描述
Sort an array of integers in non-decreasing order.
// 输入格式
The first line contains n (1 <= n <= 10^5). The second line contains n integers (-10^9 <= a_i <= 10^9).
// 输出格式
The sorted integers on a single line, separated by spaces.
// 提示
Any O(n log n) sort works.
// 样例
输入样例
5
5 3 8 1 2
输出样例
1 2 3 5 8
// 题目信息
难度Easy
通过率50%
时间限制1000 ms
内存限制65536 KB
通过5