#P1177. 【模板】排序
【模板】排序
Description
Sort the input numbers in ascending order and output them.
Input Format
The first line contains a positive integer .
The second line contains space-separated positive integers , which are the numbers you need to sort.
Output Format
Output the given numbers in ascending order, separated by spaces. The line should end with a newline character and have no trailing space.
5
4 2 4 5 1
1 2 4 4 5
Hint
For of the testdata, .
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号