#CCBCHBAHAI0000147. Giá trị lớn nhất (Maximum Value)
Giá trị lớn nhất (Maximum Value)
Maximum Value
Source: C Primer Plus
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer array , find its maximum value:
Input
- The first line contains an integer .
- The second line contains integers .
Output
Print one integer, the maximum value .
Subtasks
Subtask 1 (100 points): and .
Examples
Input
6
7 -3 5 19 8 19
Output
19
Explanation
The maximum value is . Its multiple occurrences do not change the value that must be printed.