#CCC24J3. Bronze Count
Bronze Count
After a competition, you are curious how many participants received a “bronze” award. The awards are given as follows:
- Highest score → Gold
- Second highest → Silver
- Third highest → Bronze
Given all scores (duplicates possible), determine the bronze score and the number of participants who received it.
Input Format
- The first line: integer
N
, number of participants. - Next
N
lines: each an integer score (0–75). - At least three distinct scores exist.
Output Format Output two integers: the bronze score and the number of participants with that score.
Sample Input
4
70
62
58
73
Sample Output
62 1