A - 最大値 解説 /

実行時間制限: 2 sec / メモリ制限: 256 MB

配点 : 100

問題文

数列 a の最大値を出力してください。

制約

  • 1 \leq N \leq 100

Sample Input 1

5
3 1 5 4 2

Sample Output 1

5

Sample Input 2

6
1 2 3 4 5 6

Sample Output 2

6

Sample Input 3

7
7 6 5 4 3 2 1

Sample Output 3

7

Sample Input 4

20
19 11 10 7 8 9 17 18 20 4 3 15 16 1 5 14 6 2 13 12

Sample Output 4

20