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 |
0ms.......惯例贴代码#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator