SEM 2 - W5 |
Start: Apr.04.2023 at 04:12:08 PM
Finish: Apr.10.2023 at 08:12:08 PM
The contest is finished!
• Contest scoreboard
|
Feedback | If you notice incorrect translations in Contester, please let author know.
|
|
Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Russian Informatics Olympiads.
Max of N integers
Given N integers. Find out the maximum number.
Input
In the first line N - the number of numbers in sequence
(1 <= N <= 100) is given. Then, in the second line, the number sequence is provided: ( N
numbers less than 1000 ).
Output
Display the max number.
input 1 b>
td>
|
Input 2 b>
td> tr>
9
3 5 1 7 9 0 9 -3 10
td>
|
3
-5 -300 -12
td> |
Output 1 b>
td>
|
Output 2 b>
td> tr>
10
td>
|
-5
td> | | |
Для отправки решений необходимо выполнить вход.
|