Kizspy.me
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
8
Zoom
4 9 3 1028
+ 100%
Close