TopCoder

Caido
$\mathbb{W}\mathcal{aimai}\sim$

User's AC Ratio

94.9% (169/178)

Submission's AC Ratio

55.8% (230/412)

Tags

Description

給一堆數字, 把他從小到大排序好。

Input Format

第一個數字當然是n,接著有n個整數。(n≤106,其餘整數皆於-230到 230之間)

測試資料包含多組測資。

Output Format

輸出一個已排序好的數列

Sample Input 1

5
5 4 3 2 1
5
-1 -2 -3 -4 -5

Sample Output 1

1 2 3 4 5
-5 -4 -3 -2 -1

Hints

Problem Source

原TIOJ1287 / 雄中公假社'08 入退社考。Problem Setter:ggm。

Subtasks

No. Testdata Range Score
1 0 20
2 1 20
3 2 20
4 3 20
5 4 20

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 5000 65536 262144 1
1 5000 65536 262144 2
2 5000 65536 262144 3
3 5000 65536 262144 4
4 5000 65536 262144 5