| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
c++AC,,,g++WA,,,为什么这么神奇啊!#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator