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

📄 problem 1292.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=1292 -->
<HTML><HEAD><TITLE>Problem 1292</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 1292.files/logo.gif" align=center></IMG></CENTER>
<HR>

<CENTER><FONT color=blue size=+2>Integer Inquiry</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> 4946&nbsp;&nbsp; <FONT color=green>Accepted 
Submit:</FONT> 1308&nbsp;&nbsp; </CENTER>
<HR>
One of the first users of BIT's new supercomputer was Chip Diller. He extended 
his exploration of powers of 3 to go from 0 to 333 and he explored taking 
various sums of those numbers. 
<P>``This supercomputer is great,'' remarked Chip. ``I only wish Timothy were 
here to see these results.'' (Chip moved to a new apartment, once one became 
available on the third floor of the Lemon Sky apartments on Third Street.) </P>
<P><BR><B>Input</B><BR><BR>The input will consist of at most 100 lines of text, 
each of which contains a single VeryLongInteger. Each VeryLongInteger will be 
100 or fewer characters in length, and will only contain digits (no 
VeryLongInteger will be negative). </P>
<P>The final input line will contain a single zero on a line by itself. </P>
<P><BR><B>Output</B><BR><BR>Your program should output the sum of the 
VeryLongIntegers given in the input. </P>
<P><BR><B>This problem contains multiple test cases!</B></P>
<P>The first line of a multiple input is an integer N, then a blank line 
followed by N input blocks. Each input block is in the format indicated in the 
problem description. There is a blank line between input blocks.</P>
<P>The output format consists of N output blocks. There is a blank line between 
output blocks.</P>
<P><B><BR>Sample Input</B></P>1<BR><BR>
<P>123456789012345678901234567890<BR>123456789012345678901234567890<BR>123456789012345678901234567890<BR>0</P>
<P><B><BR>Sample Output</B></P>
<P>370370367037037036703703703670<BR></P>
<HR>
<FONT color=green size=+1>Problem Source: </FONT><I>East Central North America 
1996</I>
<HR>
 
<CENTER><A href="http://acm.zju.edu.cn/submit.php?pid=1292">Submit</A> 
&nbsp;&nbsp;<A href="http://acm.zju.edu.cn/list_problem.php?vol=3">Back</A> 
&nbsp;&nbsp;<A 
href="http://acm.zju.edu.cn/problem_status.php?pid=1292">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 + -