BlueBook

p171ex6a - Max

Given T real numbers, find and output the largest one to four decimal places.

Input

The first line contains a single integer T (1 ≤ T ≤ 1000000). Each of the following T lines contains one real number xi (-106xi ≤ 106).

Output

A single line: the largest of the T real numbers.

Sample Input

3
1.5
3
2.2

Sample Output

3.0000

All Submissions
Best Solutions


Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Oct 22, 2008

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

Comments (Search)

lol i failed.... i forgot that the intitiazation for the floats are 0.... i failed

I tried a big bunch of test cases, but they all seem to be working on ideone.

"one real number x (-10^6 ≤ x ≤ 10^6)."