Dishonest Lottery
시간 제한1초메모리 제한1024 MB
5개 숫자로 이루어진 10n번의 추첨을 읽고, 2n번을 초과해 등장한 숫자를 오름차순으로 모두 출력한다.
문제
You suspect your local lottery of cheating! Some numbers are coming up too often!
Each week, the lottery randomly selects five numbers in the range from one to fifty. So, each number should appear about of the time if the numbers are truly chosen randomly. If a number appears far more than that, it’s suspicious!
Determine if a set of lottery drawings is suspicious by listing all numbers that appear too often. To allow for random error, you’ll need to flag any number that appears more than of the time.
입력
The first line of input contains a single integer (). There will be lottery results for you to analyze.
Each of the next lines contains integers (). Each line represents a drawing. All values on a line are unique.
출력
On a single line, output all numbers that appear strictly more than times in the list. If there is more than one, output them space-separated, in sorted order from smallest to largest. If there aren’t any, output .