📄 problem 1763.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0047)http://acm.zju.edu.cn/show_problem.php?pid=1763 -->
<HTML><HEAD><TITLE>Problem 1763</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 1763.files/logo.gif" align=center></IMG></CENTER>
<HR>
<CENTER><FONT color=blue size=+2>A Simple Question of Chemistry</FONT></CENTER>
<HR>
<CENTER><FONT color=green>Time limit:</FONT> 1 Seconds <FONT
color=green>Memory limit: </FONT>32768K </FONT><BR><FONT
color=green>Total Submit:</FONT> 2659 <FONT color=green>Accepted
Submit:</FONT> 1565 </CENTER>
<HR>
Your chemistry lab instructor is a very enthusiastic graduate student who
clearly has forgotten what their undergraduate Chemistry 101 lab experience was
like. Your instructor has come up with the brilliant idea that you will monitor
the temperature of your mixture every minute for the entire lab. You will then
plot the rate of change for the entire duration of the lab.
<P>Being a promising computer scientist, you know you can automate part of this
procedure, so you are writing a program you can run on your laptop during
chemistry labs. (Laptops are only occasionally dissolved by the chemicals used
in such labs.) You will write a program that will let you enter in each
temperature as you observe it. The program will then calculate the difference
between this temperature and the previous one, and print out the difference.
Then you can feed this input into a simple graphing program and finish your plot
before you leave the chemistry lab.</P>
<P><B><BR>Input</B></P>
<P>The input is a series of temperatures, one per line, ranging from -10 to 200.
The temperatures may be specified up to two decimal places. After the final
observation, the number 999 will indicate the end of the input data stream. All
data sets will have at least two temperature observations.</P>
<P><BR><B>Output</B></P>
<P>Your program should output a series of differences between each temperature
and the previous temperature. There is one fewer difference observed than the
number of temperature observations (output nothing for the first temperature).
Differences are always output to two decimal points, with no leading zeroes
(except for the ones place for a number less than 1, such as 0.01) or
spaces.</P>
<P>After the final output, print a line with "End of Output"</P>
<P><BR><B>Sample Input</B></P>
<P>10.0<BR>12.05<BR>30.25<BR>20<BR>999</P>
<P><BR><B>Sample Output</B></P>
<P>2.05<BR>18.20<BR>-10.25<BR>End of Output<BR></P>
<HR>
<FONT color=green size=+1>Problem Source: </FONT><I>Mid-Atlantic USA 2003</I>
<HR>
<CENTER><A href="http://acm.zju.edu.cn/submit.php?pid=1763">Submit</A>
<A href="http://acm.zju.edu.cn/list_problem.php?vol=8">Back</A>
<A
href="http://acm.zju.edu.cn/problem_status.php?pid=1763">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 + -