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

PROGRAMMING:"Sound for dream, singing" singer competition

Luz5年前 (2021-05-10)题库496
###Task description

```
The school of planning held the "sound for dream, singing" singer competition. The applicants were very enthusiastic, almost 100 people. Please compile a program to count the preliminary ranking. The rules are as follows:
(1) In the online voting ranking, among all the contestants who have more than 100 votes (greater than or equal to 100), the first one gets 100 points, the second one gets 98 points, the third one gets 96 points, and so on, until the final score is 60; Among the contestants with less than 100 votes, the first one gets 50 points, the second one gets 48 points, the third one gets 46 points, and so on, until the last one gets 0;.
(2) The scoring rule of on-site judges is to remove one highest score and one lowest score from the 15 judges' scores, and take the average score for the remaining scores.
(3) The total score is composed of online voting score * 0.4 + on-site judges score * 0.6.
For example, the number of online votes is:
120 votes for 2 people, ranking first, with 100 points for each person;
110 votes, 5 people, ranking second, 98 points per person;
105 votes, 4 people, ranking third, each with 96 points;
90 votes for one person, ranking first among the contestants with less than 100 votes, scoring 50 points;
80 votes for 8 people, ranking second among the contestants with less than 100 votes, scoring 48 points;
```
###Input format:
```
Each line is a set of data, 1 name string and 16 integers (including the number of online votes and the on-site scores of 15 judges). There is no space in the middle of the name data, with a maximum of 20 characters.
```
###Output format:
```
First output a line of title, and then output each person's ranking and performance data in turn.
Each row outputs the ranking, name, online voting score, judges' on-site score and the final score of the overall evaluation.
```
###Input example:
```in
Zhaozhongrui 500 100 90 80 85 95 100 90 80 85 95 100 90 80 85 95
Sunliang 450 98 99 85 84 90 95 90 95 96 98 99 100 94 92 93
ZhaoZhan 450 99 98 96 95 94 93 92 98 97 99 99 100 99 96 95
Wuguohao 430 80 85 86 85 84 64 80 83 82 86 87 88 90 92 94
Yangbing 95 100 100 100 95 95 95 96 94 93 100 88 89 94 93 92
Haohanxu 98 80 80 78 78 85 85 85 88 86 85 80 80 75 75 89
Chenkun 120 100 100 90 90 90 85 85 98 98 96 84 83 82 84 91
Zhaosong 90 75 78 76 80 80 75 76 78 81 79 74 75 89 89 80
Yulong 480 100 100 100 100 100 100 100 100 100 100 99 99 99 98 99
```
###Output example:
```out
Rank-Name----------Ticket-TicketScore-JudgesScore--FinalScore
1 Yulong 480 98 99.692 99.015
2 ZhaoZhan 450 96 96.769 96.462
3 Sunliang 450 96 94.154 94.892
4 Zhaozhongrui 500 100 90.000 94.000
5 Chenkun 120 90 90.308 90.185
6 Wuguohao 430 92 85.231 87.000
7 Yangbing 95 48 95.077 76.246
8 Haohanxu 98 50 81.923 69.000
9 Zhaosong 90 46 78.615 65.569
```






answer:If there is no answer, please comment