求C语言大神、英语大神帮我翻译一下下面这段题目要求,谢谢

Itissaidthat90%offroshexpecttobeaboveaverageintheirclass.Youaretoprovidearealitycheck... It is said that 90% of frosh expect to be above average in their class. You are to provide a reality check.
The first line of standard input contains an integer C, the number of test cases. C data sets follow. Each data set begins with an integer, N, the number of people in the class (1 <= N <= 1000). N integers follow, separated by spaces or newlines, each giving the final grade (an integer between 0 and 100) of a student in the class. For each case you are to output a line giving the percentage of students whose grade is above average, rounded to 3 decimal places.
Sample Input
55 50 50 70 80 1007 100 95 90 80 70 60 503 70 90 803 70 90 819 100 99 98 97 96 95 94 93 91

Output for Sample Input
40.000% 57.143%33.333%66.667%55.556%
展开
 我来答
田风子风v
2014-12-16 · TA获得超过192个赞
知道小有建树答主
回答量:179
采纳率:0%
帮助的人:122万
展开全部
据说,90%的新生期待取得平均分以上的成绩。现在你的任务是提供一个事实检测。
标准输入的第一行包含一个变量C,C代表了测试案例的数量。接下来有C组数据。每一组数据以一个变量N开始,N表示了班里的人数(1<=N<=1000)。接下来有N个变量,以空格或下一行间隔,每个变量的数据代表了学生在班里的期末成绩(成绩在0到100之间)。对于每一个用例,你要用一行输出超过平均成绩的学生百分比,保留三位小数。
//这个样本输入排版做的不好,第一个5是代表有5组测试用例
样本输入
5 5 50 50 70 80 100 7 100 95 90 80 70 60 50 3 70 90 80 3 70 90 81 9 100 99 98 97 96 95 94 93 91

样本输出
40.000% 57.143%33.333%66.667%55.556%
追问
大神就是大神!
BBZXY520
2014-12-16 · 超过13用户采纳过TA的回答
知道答主
回答量:61
采纳率:0%
帮助的人:22.4万
展开全部
 据说,90%的大学一年级生类期望高于平均水平。你要提供一个现实。
  标准输入的第一行包含一个整数,测试用例的数量。C的数据集。每个数据集始于一个整数N,班上的人数(1 < = N < = 1000)。N个整数,空格或换行隔开,每个给期末成绩(0到100之间的整数)班上的一个学生。针对每种情况你输出一行给学生的年级的比例高于平均水平,圆形到3位小数。
  样例输入
  55 50 50 70 70 1007 100 95 90 80 70 503 70 90 803 70 90 819 100 99 98 97 96 95 94 93 91
  
  输出样例输入
  40.000% 57.143% 33.333% 33.333% 57.143%
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式