2013春季SD高校ACM周赛9(SDUT) -A
2013-03-17 16:25
363 查看
Judging Olympia
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.
code:
Time Limit: 1000MS Memory limit: 65536K
题目描述
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 importanceof 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.
输入
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.输出
For each test case, print the grade on a separate line (without unnecessary decimal points and/or zeros.)示例输入
8 8 8 4 4 4 8 8 6 4 4 3 0 0 0 0 0 0
示例输出
6 5.5
code:
#include<iostream> #include<vector> #include<queue> #include<stack> #include<stdio.h> #include<algorithm> #include<cstdio> #include<string> #include<cstring> using namespace std;//头�件 int cmp(int a,int b) { return a<b; } int main() { int num[1000]; int sum; while(1) { sum=0; for(int i=0;i<6;i++) { cin>>num[i]; } if(num[0]==0&&num[1]==0&&num[2]==0&&num[3]==0&&num[4]==0&&num[5]==0) break; sort(num,num+6,cmp); for(int i=1;i<=4;i++) { sum+=num[i]; // cout<<num[i]<<endl; // cout<<i<<endl; } // cout<<sum<<endl; cout<<sum*1.0/4<<endl; } return 0; } /************************************** Problem id : SDUT OJ A User name : sunxiaolei Result : Accepted Take Memory : 520K Take Time : 0MS Submit Time : 2013-03-16 14:42:58 **************************************/
相关文章推荐
- 2013春季SD高校ACM周赛9(SDUT) -b
- 2013春季SD高校ACM周赛9(SDUT) -E
- 【2013春季SD高校ACM周赛8(SDUT)】各水题题解
- 2013春季SD高校ACM周赛8(SDUT)
- 【2013寒假SD高校ACM周赛4(SDJZU & SDUT)】 超级玛丽
- 2013寒假SD高校ACM周赛3(SDUT)
- 2013.3.6 SDUT 2013春季ACM集训_12级周赛2 A题 ZOJ 2965
- 【读题坑爹】 2013寒假SD高校ACM周赛总结
- 【打表找规律】2013寒假SD高校ACM周赛5——I’ve Got Your Back(gammon)
- 【再看细节】SDUT春季高校周赛9 Problem E——A Tale from the Dark Side of The Moon
- 水题啊水题,可我偏偏没做出来!!!(SDUT 2013春季ACM集训_12级周赛3 A题 )
- 2013寒假SD高校ACM周赛3—Steps
- 2013 CSDN & 西南大学 高校俱乐部 春季巡讲
- [ACM]魔方涂色(SD高校ACM周赛3(SDUT))
- 【差一点就坑了】SDUT春季高校周赛8(SDUT2038) Problem F——数字游戏
- CocoaChina2013春季开发者大会:中移动游戏基地副总经理端木文琳-2013游戏大爆发 行业大洗牌
- 2013 山东科技大学CSDN高校俱乐部春季巡讲
- Cocos2d-x 2013春季新功能发布和发展规划
- 2013春季巡讲讲稿—从大学生到CTO—肖江—西南大学CSDN高校俱乐部