Số lần xuất hiện nhiều nhất


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 1G

Problem type

Cho $N$ số nguyên $a_1,a_2,...,a_{N}$. Hãy tìm phần tử có số lần xuất hiện nhiều nhất.

Dữ liệu

  • Dòng duy nhất chứa số nguyên dương $N$ $(1\le N \le 10^5)$;
  • Dòng tiếp theo chứa $N$ số nguyên $a_i$ $(1\le a_i \le 10^9)$.

Kết quả

  • Số lần xuất hiện nhiều nhất đó.

Ví dụ

Ví dụ 1

input

5
1 2 2 2 3

output

3

Comments

There are no comments at the moment.