poj 2871

简介:

大水

#include <iostream>
#define eps 1e-8

using namespace std;

int main() 
{
    //freopen("input.txt", "r", stdin);
    double n,m;

    cin>>n;
    while( cin>>m ) {

        //if( m == 999 )
        if( 999-m<eps )
            break;

        printf("%.2f\n",m-n);

        n=m;
    }

    cout<<"End of Output"<<endl;

    return 0; 
}
AI 代码解读
目录
打赏
0
0
0
0
17
分享
相关文章
|
9月前
|
Highways(POJ—2485)
Highways(POJ—2485)
POJ 2262 Goldbach's Conjecture
POJ 2262 Goldbach's Conjecture
150 0
poj 3664
http://poj.org/problem?id=3664 进行两轮选举,第一轮选前n进入第二轮,第二轮选最高   #include #include using namespace std; struct vote { int a,b; int c; ...
745 0
poj-1006-Biorhythms
Description 人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应的方面表现出色。例如,智力周期的高峰,人会思维敏捷,精力容易高度集中。
631 0
POJ 2487 Stamps
Description Background Everybody hates Raymond. He’s the largest stamp collector on planet earth and because of that he always makes fun of all the others at the stamp collector parties.
1077 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等