1893.Crunching Numbers Just for You

Time Limit: 1s Memory Limit: 256MB

You are developing a new feature for the website which sells airline tickets: being able to sort tickets by price! You have already extracted the tickets' prices, so there's just the last step to be done...

You are given an array of integers. Sort it in non-descending order.

Input Format(From the terminal/stdin)

The input consists of a single line of space-separated integers. The first number is n (1 \le n \le 10) - the size of the array. The following n numbers are the elements of the array (1 \le ai \le 100).

Output Format(To the terminal/stdout)

Output space-separated elements of the sorted array.

Sample Input

Copy
3 3 1 2
 · · · \n

Sample Output

Copy
1 2 3 
 · · \n

Hints

Remember, this is a very important feature, and you have to make sure the customers appreciate it!

Submit

请先 登录

© 2025 FAQs