Logo
(追記) (追記ここまで)

32328번 - Bronze Count 서브태스크다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB1901179666.667%

문제

After completing a competition, you are struck with curiosity. How many participants were awarded bronze level?

Gold level is awarded to all participants who achieve the highest score. Silver level is awarded to all participants who achieve the second highest score. Bronze level is awarded to all participants who achieve the third highest score.

Given a list of all the scores, your job is to determine the score required for bronze level and how many participants achieved this score.

입력

The first line of input contains a positive integer, N, representing the number of participants.

Each of the next N lines of input contain a single integer representing a participant’s score.

Each score is between 0 and 75 (inclusive) and there will be at least three distinct scores.

출력

Output a non-negative integer, S, and a positive integer, P, separated by a single space, where S is the score required for bronze level and P is how many participants achieved this score.

제한

서브태스크

Subtask Score Description Bound
1 6 The scores are distinct and the number of participants is small. N ≤ 50
2 7 The scores might not be distinct and the number of participants is small. N ≤ 50
3 2 The scores might not be distinct and the number of participants could be large. N ≤ 250 000

예제 입력 1

4
70
62
58
73

예제 출력 1

62 1

The score required for bronze level is 62 and one participant achieved this score.

예제 입력 2

8
75
70
60
70
70
60
75
70

예제 출력 2

60 2

The score required for bronze level is 60 and two participants achieved this score.

힌트

출처

Olympiad > Canadian Computing Competition & Olympiad > 2024 > CCC 2024 Junior Division 3번

채점 및 기타 정보

  • 예제는 채점하지 않는다.
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /