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

PROGRAMMING:Calculate the number of times the maximum occurs

Luz5年前 (2021-05-10)题库430
Calculates the number of times the maximum value appears in a one-dimensional array.
###Input format:
Input n in one line (n < = 1000, representing the size of the array), and input n integers in the next line, which are the elements of one-dimensional array.
###Output format:
Output the maximum value and the number of occurrences.
###Input example:
Here is a set of inputs. For example:
```in
four
4 2 2 4
```
###Output example:
The corresponding output is given here. For example:
```out
4 2
```







answer:If there is no answer, please comment