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

5489번 - Numbers 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB32324520775.824%

문제

You are to write a program, which, given N positive integer values X1, X2, ..., XN, computes the smallest number Xi that appears in the sequence at least as many times as any other number.

입력

The first line contains a single integer N. Line i+1 (for i = 1, 2, ..., N) contains one integer Xi.

출력

The first line is to contain one integer, the smallest number to appear at least as many times as any other number.

제한

  • 2 ≤ N ≤ 1000
  • 1 ≤ Xi ≤ 10000

예제 입력 1

10
1
2
3
4
5
3
2
3
1
2

예제 출력 1

2

힌트

출처

Olympiad > International Olympiad in Informatics > IOI 2004 > Practice 1번

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

출처

대학교 대회

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

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