#P348. 练60.2 众数
练60.2 众数
Description
For a sequence {} of length , its mode is defined as the number that appears most frequently.
Given a sequence of length , please help find its mode.
Note that there may be multiple modes, you only need to output the smallest one.
Input Format
The first line contains , and the second line contains numbers, where and .
Output Format
Output the mode.
Sample
6
3 5 7 5 3 13
Related
In following homework: