码迷,mamicode.com
首页 > 其他好文 > 详细

zju 1763

时间:2014-08-02 01:27:12      阅读:297      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   os   io   2014   art   

bubuko.com,布布扣bubuko.com,布布扣bubuko.com,布布扣

 

 

 

 

 

bubuko.com,布布扣
#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;
}

zju 1763,布布扣,bubuko.com

zju 1763

标签:style   blog   http   color   os   io   2014   art   

原文地址:http://www.cnblogs.com/2014acm/p/3885970.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!