文件名称:acm1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:819.73kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
above average acm大赛题目。有待改进。-Descr iption
It is said that 90 of frosh expect to be above average in their class. You are to provide a reality check.
Input
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.
Output
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
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
Sample Output
40.000
57.143
33.333
66.667
55.556
It is said that 90 of frosh expect to be above average in their class. You are to provide a reality check.
Input
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.
Output
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
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
Sample Output
40.000
57.143
33.333
66.667
55.556
(系统自动生成,下载前可以参看下载内容)
下载文件列表
acm1/acm1.cpp
acm1/acm1.vcproj
acm1/acm1.vcproj.WWW-F0365220079.Administrator.user
acm1/Debug/acm1.exe.embed.manifest
acm1/Debug/acm1.exe.embed.manifest.res
acm1/Debug/acm1.exe.intermediate.manifest
acm1/Debug/acm1.obj
acm1/Debug/acm1.pch
acm1/Debug/BuildLog.htm
acm1/Debug/mt.dep
acm1/Debug/stdafx.obj
acm1/Debug/vc90.idb
acm1/Debug/vc90.pdb
acm1/ReadMe.txt
acm1/stdafx.cpp
acm1/stdafx.h
acm1/targetver.h
Debug/acm1.exe
Debug/acm1.ilk
Debug/acm1.pdb
acm1.sln
acm1.suo
acm1/Debug
acm1
Debug
acm1.ncb
acm1/acm1.vcproj
acm1/acm1.vcproj.WWW-F0365220079.Administrator.user
acm1/Debug/acm1.exe.embed.manifest
acm1/Debug/acm1.exe.embed.manifest.res
acm1/Debug/acm1.exe.intermediate.manifest
acm1/Debug/acm1.obj
acm1/Debug/acm1.pch
acm1/Debug/BuildLog.htm
acm1/Debug/mt.dep
acm1/Debug/stdafx.obj
acm1/Debug/vc90.idb
acm1/Debug/vc90.pdb
acm1/ReadMe.txt
acm1/stdafx.cpp
acm1/stdafx.h
acm1/targetver.h
Debug/acm1.exe
Debug/acm1.ilk
Debug/acm1.pdb
acm1.sln
acm1.suo
acm1/Debug
acm1
Debug
acm1.ncb
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.