MAXEZ - Finding Max
There is a list and it is empty. You are given some number. Your task is simple: add the given numbers to the list and print the maximum number from the list.
First line contains T (0 < T <= 106) which is the number of queries.
Second line contains T numbers ni (0 <= ni <= 107) which have to be inserted into the list.
Print a maximum number that presents in the list in one line.
1 2 3 5 4 Output: 5