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

0ms.......惯例贴代码

Posted by lushanG130202 at 2014-02-13 22:14:11 on Problem 2871
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
    double a[100];
    for(int i=0;i<100;i++)
    {
        cin>>a[i];
        if(a[i]==999)
            break;
        if(i>0)
            printf("%.2lf\n",a[i]-a[i-1]);
    }End of Output
    cout<<"End of Output"<<endl;
    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