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

PROGRAMMING:Finding the maximum value and its index

Luz5年前 (2021-05-10)题库391
This problem requires the preparation of procedures to find out the maximum number of given n and its corresponding positive index.
###Input format:
Enter several integers on the first line, separated by spaces.
###Output format:
Output the maximum value and index of the maximum value in a row, separated by a space.
###Input example:
Here is a set of inputs. For example:
```in
2 8 10 1 9 10
```
###Output example:
The corresponding output is given here. For example:
```out
10 2
```







answer:If there is no answer, please comment