acm1

所属分类:数值算法/人工智能
开发工具:Visual C++
文件大小:820KB
下载次数:20
上传日期:2010-05-10 08:34:00
上 传 者eagle_deeply
说明:  above average acm大赛题目。有待改进。
(Description 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 (510, 2010-05-10)
acm1\acm1.vcproj (4489, 2010-05-07)
acm1\acm1.vcproj.WWW-F0365220079.Administrator.user (1427, 2010-05-10)
acm1\Debug\acm1.exe.embed.manifest (663, 2010-05-07)
acm1\Debug\acm1.exe.embed.manifest.res (728, 2010-05-07)
acm1\Debug\acm1.exe.intermediate.manifest (621, 2010-05-08)
acm1\Debug\acm1.obj (5039, 2010-05-08)
acm1\Debug\acm1.pch (3211264, 2010-05-07)
acm1\Debug\BuildLog.htm (8608, 2010-05-08)
acm1\Debug\mt.dep (67, 2010-05-08)
acm1\Debug\stdafx.obj (12037, 2010-05-07)
acm1\Debug\vc90.idb (68608, 2010-05-08)
acm1\Debug\vc90.pdb (126976, 2010-05-08)
acm1\stdafx.cpp (209, 2010-05-07)
acm1\stdafx.h (233, 2010-05-07)
acm1\targetver.h (498, 2010-05-07)
Debug\acm1.exe (29184, 2010-05-08)
Debug\acm1.ilk (316072, 2010-05-08)
Debug\acm1.pdb (470016, 2010-05-08)
acm1.sln (883, 2010-05-07)
acm1.suo (10752, 2010-05-10)
acm1\Debug (0, 2010-05-08)
acm1 (0, 2010-05-10)
Debug (0, 2010-05-08)
acm1.ncb (1412096, 2010-05-10)

======================================================================== 控制台应用程序:acm1 项目概述 ======================================================================== 应用程序向导已为您创建了此 acm1 应用程序。 本文件概要介绍组成 acm1 应用程序的 的每个文件的内容。 acm1.vcproj 这是使用应用程序向导生成的 VC++ 项目的主项目文件, 其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 acm1.cpp 这是主应用程序源文件。 ///////////////////////////////////////////////////////////////////////////// 其他标准文件: StdAfx.h, StdAfx.cpp 这些文件用于生成名为 acm1.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 ///////////////////////////////////////////////////////////////////////////// 其他注释: 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 /////////////////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者