PRF192_-_SP_2025_-_Block_5_-_PE_3823.webp
Scar89

PRF192_-_SP_2025_-_Block_5_-_PE_3823.webp

  • Media owner Scar89
  • Ngày thêm
Kizspy.me
2. Runner-up (2 place)
3. Third place (3rd place)
Please indicate the time taken by the Runner-up (2nd place) to complete the race.
For example, if there are 10 contestants with finishing times of 2, 5, 7, 1, 3, 6, 9, 4, 6, 9, the
champion is the contestant who takes 9 seconds to finish. The runner-up is the second contestant
who also takes 9 seconds to complete the race.
Input

The first line contains the number of competitors N.
The second line contains N integers are the time of N competitors, each number separated by
one space.
Constraint
• 2≤N≤100.
• 1≤ti≤ 10º
• 0≤i≤N-1.
Output
Please print out the time taken by the Runner-up (2nd place) to complete the race.
Sample
Sample 1
Input
10
Output
9
2 5 7 1 3 6 9 469
Sample 2
7
Zoom
4 9 3 1 0 28
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
Scar89
Ngày thêm
Lượt xem
1,101
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom