[R11B]前三小
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.
时空限制
1S/512M
题目描述
给定一个长度为 的整数数组 ,其中的数字互不相同。
求出其中前三小的数字,按在数组中出现的顺序输出。
格式
输入格式
第一行包含一个整数 表示数组长度。
第二行包含 个不同整数,表示数组 。
输出格式
输出的第一行包含三个整数,表示 中前三小的数字。按在数组中出现的顺序输出。
样例
样例输入 #1
5
7 3 4 9 1
样例输出 #1
3 4 1
样例解释 #1
中前三小的数字分别是:。在数组中出现的顺序为:。
数据规模
对于 的数据,,。数据保证 中的数字互不相同。
代码源挑战赛 Round 11
- Status
- Done
- Rule
- DMY
- Problem
- 6
- Start at
- 2025-5-9 20:00
- End at
- 2025-5-9 21:30
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 580