시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
2 초 | 1024 MB | 209 | 174 | 155 | 92.814% |
In a sequence of integers, the number of times an integer occurs is called the frequency of the integer. Given a sequence of integers, find the highest frequency.
The first line contains a single integer N (1 ≤ N ≤ 10000) denoting the number of integers in the sequence. Each of the subsequent N lines contains an integer n (1 ≤ n ≤ 1000) in the sequence.
The output contains an integer that is the highest frequency of the sequence.
12 1 2 5 6 3 7 11 345 754 2 5 2
3
7 2 4 6 7 7 2 4
2