题库练习 Crunching Numbers Just for You
← 上一题 下一题 →

A10963 | Crunching Numbers Just for You

时间限制1s
内存限制256MB
通过 / 提交0/0

题目描述

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.

输入格式

The input consists of a single line of space-separated integers. The first number is $n$ ( $1<=n<=10$ ) — the size of the array. The following $n$ numbers are the elements of the array ( $1<=a_{i}<=100$ ).

输出格式

Output space-separated elements of the sorted array.

输入输出样例

输入 #1
3 3 1 2
输出 #1
1 2 3 
C++ 编辑器
输入
输出