HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Search > problem:


50782 - Max of N integers

Guest
• Review clarifications (1)

Section problems

• 50575 - Number of Prime numbers
• 50576 - Number of Perfect numbers
• 50588 - Processing the list of numbers
• 50547 - Close Pair
• 50238 - The smallest number
• 50437 - Age Labeling
• 50457 - The Number of Winners
• 50478 - Letter Grades
• 50782 - Max of N integers
• 50552 - Casual shoes
• 50562 - List of students
• 50570 - Prime numbers in the seg...
• 50586 - Prime Palindromes
• 50783 - The smallest number
• Raporti Javor
• 50331 - Number of Numbers over A...
• 50465 - How many students have p...

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 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