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

PROGRAMMING:Minimum value and its subscript

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







answer:If there is no answer, please comment