I. Tần số xuất hiện nhiều nhất


Submit solution

Points: 50
Time limit: 1.0s
Memory limit: 256M

Problem types

Cho dãy số \(a_1, a_2, a_3,...,a_n\)
Em hãy lập trình in ra số có tần số xuất hiện nhiều nhất trong dãy trên

input

5
3
1
3
2
2

output

2
3

Giải thích Số 2 xuất hiện 2 lần Số 3 xuất hiện 2 lần

input

10
1111111
4444444
2222222
3333333
4444444
6666666
4444444
2222223
8888888
2222222

output

4444444

Giải thích Số 4444444 xuất hiện 3 lần


Comments

There are no comments at the moment.