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

PROGRAMMING:Finding the maximum value of an array

Luz5年前 (2021-05-10)题库454
Find the maximum value of an array of length $$n $.
###Input format:
The first line is an integer $$n $, which represents the length of the array$$( 1<=n<=2000)$$
Second line $$n $$positive integers separated by spaces $$a_ 1,a_ 2,...,a_ N $$, which represents the value of each element in the array$$( 1<=a_ i<=2000)$$
###Output format:
Output the maximum value of the array in one row.
###Input example:
```in
five
1 4 2 6 3
```
###Output example:
```out
six
```







answer:If there is no answer, please comment