首页 > 其他 > 详细

POJ 2871

时间:2015-06-11 12:41:55      阅读:167      评论:0      收藏:0      [点我收藏+]
#include<iostream>
#include<stdio.h>
#include<iomanip>
using namespace std;

int main()
{
	//freopen("acm.acm","r",stdin);
	double tem1;
	double tem2;
	cin>>tem1;
	while(cin>>tem2)
	{
		if(tem2 == 999)
			break;
		cout<<setiosflags(ios::fixed)<<setprecision(2)<<tem2-tem1<<endl;
		tem1 = tem2;
	}
	cout<<"End of Output"<<endl;
}

 

POJ 2871

原文:http://www.cnblogs.com/gavinsp/p/4568693.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!