← ~/試題
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