Veshy is struggling in data management class. Veshy forgot how to make a box and whisker plot, so he wants you to tell him the important values to make the plot of the
For example, if the data set was
Another example, if the data set was
Constraints
In all tests,
All numbers are guaranteed to be whole numbers.
Input Specification
The first line contains a number,
The second line contains
Note: the data points are not guaranteed to be in sorted order.
Output Specification
Output the minimum, maximum,
Note: your answer will be judged as correct if it is within an absolute or relative error of
Sample Input 1
10
1 2 3 4 5 6 7 8 9 10
Sample Output 1
1 10 3 5.5 8
Sample Input 2
11
1 2 3 4 5 6 7 8 9 10 11
Sample Output 2
1 11 3 6 9
Comments
I get the first 4 right, but the 5th one is WA. Can someone take a look at my code please?
Try this test case:
Your program doesn't print decimals.
Thanks a lot, that did it