poj 3507 Judging Olympia

本文探讨了国际大学生程序设计竞赛(ICPC)评分制度的改革,建议采用六位裁判分别从正确性、鲁棒性、整体设计、清晰度、编码风格和维护性六个方面对提交进行评分,以提高评分的公正性和全面性。通过删除最高和最低评分来确保评分的客观性。
Judging Olympia
Time Limit: 1000MS Memory Limit: 65536K
Total Submissions: 5900 Accepted: 2831

Description

For years, a group of Regional Contest Directors (RCDs) of the ACM International Collegiate Programming Contest (ICPC) have been unsatisfied with the way contest submissions get ranked. The group sees it is academically wrong to emphasize the importance of program correctness, disregarding the “quality” of the program itself. After all, programming as a profession promotes design, style, maintainability, etc. and not just correctness. The group’s suggestion is to have a panel of six judges. Each judge is assigned the task of grading the submissions based on a particular aspect: 1) Correctness; 2) Robustness; 3) Overall design; 4) Clarity; 5) Coding style; and finally 6) Maintainability. The final grade of a submission would be the average of the six grades it gets.

The old guards of the current ICPC judging style have always responded that it is not possible to impartially judge a program on anything but correctness. How can the ICPC be certain that judging is fair? In other words, how can the ICPC be sure that non of the judges is favoring certain teams and disadvantaging others? Any hint of accusation to the judging process and ICPC loses the prestigious status it worked on for years. (Alright! So they do have a point.) Still, this hasn’t stopped other domains from judging candidates based on subjective metrics. Take for example Gymnastics, or The Nobel Prizes, or even the ACM’s very own Doctoral Dissertation Award. These are all highly respected awards where the winner is selected by judges using subjective metrics. ICPC could use a new judging system based on what is used in gymnastics. Rather than having each judge grade a certain aspect of the program, each of the six judges would assign an overall grade (out of ten) based on all of the six metrics mentioned above. To enforce impartiality, the final grade of a submission would be calculated as the average of all the grades after deleting two grades: The highest and the lowest. Any judge that favors a certain team (and assigns them an undeserved high grade,) risks the possibility of that grade being dismissed. Similarly, any judge that attempts to disadvantage a team by assigning them a low grade faces a similar risk.

Write a program to print the final grade of a submission.

Input

Your program will be tested on one or more test cases. Each test case is described on a single input line listing the grades of the judges. The end of the test cases is identified with a dummy test case with all the grades being zero.

Output

For each test case, print the grade on a separate line (without unnecessary decimal points and/or zeros.)

Sample Input

8 8 8 4 4 4
8 8 6 4 4 3
0 0 0 0 0 0

Sample Output

6
5.5
#include<iostream>
using namespace std;
int main()
{
int score[6];
int max,min;
int sum;
int i;
while(1)
{
for(i=0;i<6;i++)
cin>>score[i];
if(score[0]==0&&score[1]==0&&score[2]==0&&score[3]==0&&score[4]==0&&score[5]==0)
break;
max=score[0];
min=score[0];
sum=0;
for(i=0;i<6;i++)
{
if(max<score[i])
max=score[i];
if(min>score[i])
min=score[i];
sum+=score[i];
}
cout<<(float)(sum-max-min)/4<<endl;
}
return 0;
}

转载于:https://www.cnblogs.com/w0w0/archive/2011/11/23/2259831.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值