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 |
Re:有错误In Reply To:有错误 Posted by:dashan at 2007-07-29 12:50:38 > #include<iostream> > #include<cmath> > using namespace std; > int main() > { > int a,b,c,d,sum; > while(cin>>a>>b>>c>>d) > { > if(a==0 && b==0 && c==0 && d==0) > break; > else{ > > { if(c<b) > sum=40+c-b; > else sum=c-b; > } > cout<<1080+(80-abs(b-a)+sum-abs(d-c))*9<<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