首页 > 代码库 > zju 1763

zju 1763

 

 

 

 

 

#include <iostream>#include <cstdio>using namespace std;int main(int argc, char *argv[]){    double a,b;    cin>>a;    while (cin>>b)    {        if (b==999)        {            printf("End of Output\n");            break;        }          printf("%.2f\n",(b-a));        a=b;    }    return 0;}
View Code

 

 

#include <iostream>#include <cstdio>using namespace std;int main(int argc, char *argv[]){    double a,b;    cin>>a;    while (cin>>b)    {        if (b==999)        {            printf("End of Output\n");            break;        }          printf("%.2f\n",(b-a));        a=b;    }    return 0;}