#K4696. Calculate the Adjusted Average Score
Calculate the Adjusted Average Score
Calculate the Adjusted Average Score
You are given 6 integer scores. For each score, if it is less than 50
, it should be replaced by 50
(this is called capping). Your task is to compute the average of these adjusted scores.
The average is defined as \[ \text{average} = \frac{\text{sum of adjusted scores}}{6}, \] and you should print the result with exactly 6 decimal places.
For example, if the scores are 45 60 72 30 95 88
, after adjusting the scores (replacing 45 and 30 with 50) the list becomes 50 60 72 50 95 88
. The average is then computed as
\[
\frac{50+60+72+50+95+88}{6} \approx 69.166667.
\]
inputFormat
The input consists of a single line containing 6 space-separated integers.
You can assume that each integer can be parsed as score.
outputFormat
Output the average of the adjusted scores rounded and printed to exactly 6 decimal places.
## sample60 72 80 96 55 88
75.166667