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