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

c++AC,,,g++WA,,,为什么这么神奇啊!

Posted by songsuoyuan at 2009-05-10 10:48:43 on Problem 2871
#include<stdio.h>

int main()
{
	double a,b;
	scanf("%lf%lf",&a,&b);
	printf("%.2lf\n",b-a);
	while(1){
		a=b;
		scanf("%lf",&b);
		if(b-999<0.00001&&999-b<0.00001){
			printf("End of Output\n");
			break;
		}
		printf("%.2lf\n",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