p118ex5 - Max is Last
Write a program where you are given a list of N distinct real numbers where 0 ≤ N ≤ 100. Take the largest item of the list and print it last. All other items in the list should remain in their original order.
The first line of input will be an integer, N (0 ≤ N ≤ 100). Next will be N real numbers.
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).
Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Oct 19, 2008
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3