-->
当前位置:首页 > 题库

PROGRAMMING:Find the number with the most times in the integer sequence

Luz5年前 (2021-05-10)题库468
This problem requires statistics of an integer sequence in the number of times the largest number of integers and its number of times.
###Input format:
Enter the number of integers n (0 $$< $$n $$$Le $$1000) and N integers in a row. Numbers are separated by spaces.
###Output format:
In a row, output the integer with the highest number of occurrences and the number of occurrences, separated by spaces. The title guarantees that such a number is unique.
###Input example:
```in
10 3 2 -1 5 3 4 3 0 3 2
```
###Output example:
```out
3 4
```






answer:If there is no answer, please comment