Maximum of each sequence

Write a program that reads sequences of integer numbers and prints the
maximum value of each sequence.

Input

Input contains several sequences. Each sequence begins with its number
of elements n > 0, followed by n integer numbers.

Output

Print the maximum of every sequence, one per line.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:40:10.362Z

© Jutge.org, 2006–2026.
https://jutge.org
