-->
当前位置:首页 > 题库

PROGRAMMING:Mutual evaluation results

Luz5年前 (2021-05-10)题库353
The simple rule for students to evaluate each other's homework is as follows: each student's homework will be evaluated by 'k' students and get 'k' scores. The system needs to remove the highest score and the lowest score, and average the remaining scores to get the final score of the student. This problem requires you to write the calculation module of the mutual evaluation system.
###Input format:
Enter the first line to give three positive integers' n '(3 $$< $$'n' $$$Le 10 ^ 4 $$, total number of students),'k '(3 $$$Le $$'k' $$Le $$10, number of reviews for each assignment),'m '($$Le $$20, number of students to output). In the next 'n' line, each line gives the 'k' evaluation scores (in the interval [0, 100]) obtained from one assignment, separated by spaces.
###Output format:
Output the'm 'scores with the highest score in non decreasing order, and keep 3 decimal places. There should be one space between the scores, and there should be no extra space at the beginning and end of the line.
###Input example:
```in
6 5 3
88 90 85 99 60
67 60 80 76 70
90 93 96 99 99
78 65 77 70 72
88 88 88 88 88
55 55 55 55 55
```
###Output example:
```out
87.667 88.000 96.000
```






answer:If there is no answer, please comment