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

Re:有错误

Posted by 623031844 at 2011-08-09 15:42:29 on Problem 2304
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:
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