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

PROGRAMMING:Finding the maximum value and its subscript

Luz5年前 (2021-05-10)题库402
This problem requires programming to find out the maximum value of the given number of $$n $$and its corresponding minimum subscript (subscript starts from 0).
###Input format:
Input gives a positive integer $$n $$($$1 < n / Le 10 $$) in the first line. On the second line, enter $$n $$integers, separated by spaces.
###Output format:
Output the maximum value and the minimum subscript of the maximum value in a row, separated by a space.
###Input example:
```in
six
2 8 10 1 9 10
```
###Output example:
```out
10 2
```






answer:If there is no answer, please comment