⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 problem 1915.htm

📁 zju_acm的部分题目!都是自己做的! 都是些基本题目!大家看看
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0047)http://acm.zju.edu.cn/show_problem.php?pid=1915 -->
<HTML><HEAD><TITLE>Problem 1915</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<CENTER><IMG src="Problem 1915.files/logo.gif" align=center></IMG></CENTER>
<HR>

<CENTER><FONT color=blue size=+2>Above Average</FONT></CENTER>
<HR>

<CENTER><FONT color=green>Time limit:</FONT> 1 Seconds&nbsp;&nbsp; <FONT 
color=green>Memory limit: </FONT>32768K&nbsp;&nbsp; </FONT><BR><FONT 
color=green>Total Submit:</FONT> 3692&nbsp;&nbsp; <FONT color=green>Accepted 
Submit:</FONT> 1905&nbsp;&nbsp; </CENTER>
<HR>

<P>It is said that 90% of frosh expect to be above average in their class. You 
are to provide a reality check. </P>
<P><BR><B>Input</B></P>
<P>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 &lt;= N &lt;= 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. </P>
<P><BR><B>Output</B></P>
<P>For each case you are to output a line giving the percentage of students 
whose grade is above average, rounded to 3 decimal places. </P>
<P><BR><B>Sample Input</B><BR><BR>5<BR>5 50 50 70 80 100<BR>7 100 95 90 80 70 60 
50<BR>3 70 90 80<BR>3 70 90 81<BR>9 100 99 98 97 96 95 94 93 91</P>
<P><B><BR>Sample 
Output</B><BR><BR>40.000%<BR>57.143%<BR>33.333%<BR>66.667%<BR>55.556%<BR></P>
<HR>
<FONT color=green size=+1>Problem Source: </FONT><I>University of Waterloo Local 
Contest 2002.09.28</I>
<HR>
 
<CENTER><A href="http://acm.zju.edu.cn/submit.php?pid=1915">Submit</A> 
&nbsp;&nbsp;<A href="http://acm.zju.edu.cn/list_problem.php?vol=10">Back</A> 
&nbsp;&nbsp;<A 
href="http://acm.zju.edu.cn/problem_status.php?pid=1915">Status</A> </CENTER>
<HR>

<CENTER>
<TABLE width="100%" border=0>
  <TBODY>
  <TR>
    <TD align=right width="65%"><A href="http://acm.zju.edu.cn/"><FONT 
      color=red>Zhejiang University Online Judge</FONT></A> <A 
      href="http://acm.zju.edu.cn/"><FONT color=red>V1.0</FONT></A></TD>
    <TD align=right width="35%"><A href="http://www.zzhang.cn/"><FONT 
      color=#ffffff 
size=-3>Book</FONT></A></TD></TR></TBODY></TABLE></CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -