HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Search > problem:


50186 - Max of N integers

Section problems

• 50114 - Close Pairs - Revised
• 50120 - Group Total
• 50126 - The Highest Average
• 50128 - School contest
• 50129 - Sequential Numbers
• 50158 - Count and Sum
• 50160 - Number of Prime numbers
• 50168 - Processing the list of numbers
• 50186 - Max of N integers
• 50187 - The smallest number
• 50188 - Swimming Contest
• 50189 - Top Question
• 50190 - Eight Puzzle
• 50203 - Breaking the Bunker
• 50209 - Number of Student Certificates
• 50210 - The largest Student Group
• 50211 - Sum of the Pairs

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. Difficulty Alpha

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 Input 2
9
3 5 1 7 9 0 9 -3 10
3
-5 -300 -12
Output 1 Output 2
10
-5

Для отправки решений необходимо выполнить вход.

www.contester.ru