problem 1048.htm

来自「zju_acm部分代码!都是自己做 有些事基本题目!题目还可以」· HTM 代码 · 共 60 行

HTM
60 行
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0047)http://acm.zju.edu.cn/show_problem.php?pid=1048 -->
<HTML><HEAD><TITLE>Problem 1048</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<CENTER><IMG src="Problem 1048.files/logo.gif" align=center></IMG></CENTER>
<HR>

<CENTER><FONT color=blue size=+2>Financial Management</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> 11908&nbsp;&nbsp; <FONT color=green>Accepted 
Submit:</FONT> 4840&nbsp;&nbsp; </CENTER>
<HR>

<P><IMG height=236 src="Problem 1048.files/showimg.gif" width=224></P>
<P>Larry graduated this year and finally has a job. He's making a lot of money, 
but somehow never seems to have enough. Larry has decided that he needs to grab 
hold of his financial portfolio and solve his financing problems. The first step 
is to figure out what's been going on with his money. Larry has his bank account 
statements and wants to see how much money he has. Help Larry by writing a 
program to take his closing balance from each of the past twelve months and 
calculate his average account balance. </P>
<P><BR><B>Input Format:</B> <BR><BR>The input will be twelve lines. Each line 
will contain the closing balance of his bank account for a particular month. 
Each number will be positive and displayed to the penny. No dollar sign will be 
included. </P>
<P><BR><B>Output Format: </B><BR><BR>The output will be a single number, the 
average (mean) of the closing balances for the twelve months. It will be rounded 
to the nearest penny, preceded immediately by a dollar sign, and followed by the 
end-of-line. There will be no other spaces or characters in the output. 
<BR><BR><BR></P>
<P><B>Sample Input: </B><BR><BR>100.00 <BR>489.12 <BR>12454.12 <BR>1234.10 
<BR>823.05 <BR>109.20 <BR>5.27 <BR>1542.25 <BR>839.18 <BR>83.99 <BR>1295.01 
<BR>1.75 </P>
<P><BR><B>Sample Output:</B> <BR><BR>$1581.42 </P>
<HR>
<FONT color=green size=+1>Problem Source: </FONT><I>Mid-Atlantic USA 2001</I>
<HR>
 
<CENTER><A href="http://acm.zju.edu.cn/submit.php?pid=1048">Submit</A> 
&nbsp;&nbsp;<A href="http://acm.zju.edu.cn/list_problem.php?vol=1">Back</A> 
&nbsp;&nbsp;<A 
href="http://acm.zju.edu.cn/problem_status.php?pid=1048">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 + =
减小字号Ctrl + -
显示快捷键?