Loading...
Loading...
Loading...
A support team records how many minutes each ticket took. The median is the middle value after sorting; with an even count it is the average of the two middle values. Print the median with exactly one digit after the decimal point.
Example 1
Input
5 1 3
Output
3.0
Example 2
Input
4 1 2 9
Output
3.0
Try the problem first. Open one hint at a time.
Sort first, then look at the middle.
For an even count, add the two middle values and divide by 2.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor