Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

49留念

Posted by 2014ccutliuzehao at 2015-03-13 16:33:42 on Problem 2871
#include<iostream>
using namespace std;
int main()
{
	float a,b;
	cin >> b;
	if (b == 999){
		cout << "End of Output " << endl;
		return 0;
	}
	while (cin >> a)
	{
		if (a == 999){
			cout << "End of Output " << endl;
			break;
		}
		printf("%.2lf\n",a-b);
		b = a;
		
	}
	return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator