All problems

Controlling the Overall Figure Size

easyPythonMatplotlibfigsize

Halewood Reporting has a chart that will be printed across the full width of an A4 page, so the canvas is set to a fixed size in inches rather than left at the default. The shape matters: a wide, shallow canvas gives every bar room along the bottom, whereas the square default squeezes a long run of readings into an unreadable comb. Under the chart the brief quotes the peak reading, which is what sets the top of the vertical axis.

Task: Print the largest reading.

Input

The first line holds an integer n, the number of readings. Each of the next n lines holds one reading, possibly with decimals. n is at least 1.

Output

One line holding the largest reading, printed as Python prints the number it read: a reading of fifty comes out as 50.0, never as 50 and never as 50.00.

Example:

Input:
3
10
50
20

Output:
50.0

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…