BlueBook - Max is Last

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 16M

Problem type
BlueBook

Write a program where you are given a list of N distinct real numbers where 0 \le N \le 100. Take the largest item of the list and print it last. All other items in the list should remain in their original order.

Input Specification

The first line of input will be an integer, N (0 \le N \le 100). Next will be N real numbers.

Output Specification

Output the largest number at the end rounded to two decimal places. Do not rearrange the rest of the numbers and output them as inputted (rounded to two decimal places).

Sample Input

4
3
2.7
5.12
-0.63

Sample Output

3.00
2.70
-0.63
5.12

Comments

There are no comments at the moment.