当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

2350:Above Average

题目描述
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.
输入样例
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%

该题目是Virtual Judge题目,来自 北京大学POJ

源链接: POJ-2350

最后修改于 2020-10-29T06:30:21+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
1000 65536