#b. 商品排序[课课通]
商品排序[课课通]
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
某商场的仓库中有n件商品,每件商品的价格在0~1000之间(价格为0的商品为赠品)。现在商场经理要求将这n件商品按价格由低到高排序。请编程输出n件商品排序后的情况。
输入格式
第一行一个正整数n,表示有n件商品,1≤n≤100000。
接下来的n行,每行一个整数,表示第i件商品的价格。
输出格式
n行,每行输出一个整数。
样例
5
1
8
1
2
2
1
1
2
2
8
20251012编程挑战精英赛训练
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 51
- Start at
- 2025-9-24 15:00
- End at
- 2025-11-5 7:00
- Duration
- 1000 hour(s)
- Host
- Partic.
- 58