CF784F.Crunching Numbers Just for You

普及+/提高

通过率:0%

时间限制:2.00s

内存限制:64MB

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

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).

输入包含一行由空格分隔的整数。第一个数是 n(1 ≤ n ≤ 10),表示数组的大小;接下来的 n 个数是数组的元素(1 ≤ a__i ≤ 100)。

输出格式

Output space-separated elements of the sorted array.

输出排序后数组的元素,元素之间用空格分隔。

输入输出样例

  • 输入#1

    3 3 1 2

    输出#1

    1 2 3

说明/提示

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

请记住,这是一项非常重要的功能,您必须确保客户充分认可它!

输入解题思路,AI测评打分。不知道怎么写?

首页