#C7225. Median of a List
Median of a List
Median of a List
You are given a space-separated string of integers. Your task is to compute the median of this list. The median is defined as follows: If the sorted list has an odd number of elements, the median is the middle element. If it has an even number of elements, the median is the sum of the two middle elements divided by 2, i.e., \(\frac{a_{n/2} + a_{(n/2)+1}}{2}\). Output the result rounded to one decimal place.
inputFormat
The input consists of a single line containing a space-separated list of integers.
outputFormat
Output a single value representing the median of the list, rounded to one decimal place.
## sample3 1 2 5 4
3.0