练习专区

今天的一小步就是明天的一大步
Problem 1114 歌咏比赛
Accepted: 7   Total Submit: 25
Time Limit: 1000ms   Memory Limit: 30720KB
Description
CCTV要举行大学生歌咏比赛,请了10位评委,选手的得分规则是去掉一个最高分,去掉一个最低分,剩下8个分数的平均分就是这个选手的得分。要求你编程现场统计,每比赛完一个就亮出得分,最后结束时统计出冠军、亚军和季军。选手的结构用: strut Singer { float score[10]; float Last_score; };
Input
输入有若干行,每行10个分数,依次是各评委对选手的打分。选手的序号从1开始。不超过50名选手。
Output
依次输出各选手的得分,格式是“id:score"。结束后,分三行输出前三名的情况,输出格式是: gold medalist:id score:score silver medalist:id score:score bronze medalist:id score:score 结果保留两位小数(要四舍五入).如果有重名就并列计算,并少掉后面的奖项,即只选前三名。
Sample Input
9 9 9.5 8.9 9 9.1 9.5 8.8 9 9.4
9.6 9.6 9.6 9.6 9.6 9.6 9.6 9.6 9.6 9
8.6 8.7 8.9 8.7 9 9 8.9 8.9 8 8.6
9.8 9.5 9.6 9.6 9.6 9.6 9.6 9.6 9.6 9.6
8.3 9 9.6 9.2 9 9.1 8.9 8.8 8.9 9
Sample Output
1:9.11
2:9.60
3:8.79
4:9.60
5:8.99
gold medalist:2 score:9.60
gold medalist:4 score:9.60
silver medalist:1 score:9.11
Hint
提交     返回