HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


010. 50782 - Max of N integers

Guest
• Review clarifications (1)

Volume problems

• 50320 - Random Sorted List
• 001. 50385 - From m to n
• 002. 50365 - Sum of the numbers f...
• 002. 50452 - Multiplication Table
• 003. 50387 - Passengers in the Train
• 006. 50293 - Sum of odd numbers f...
• 007. 50401 - Sum of Odd Numbers
• 009. 50783 - The smallest number
• 010. 50782 - Max of N integers
• 015. 50466 - Drawing Square From...
• 016. 50463 - Drawing a Triangle
• 017. 50423 - Numbers square
• 018. 50344 - Profit or Loss
• 019. 50438 - Pattern with stars
• 020. 50408 - Molecules
• 022. 50366 - Student Averages (2 G...
• 023. 50437 - Age Labeling

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