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 joggi at 2004-10-22 14:17:12 on Problem 1006
In Reply To:再好好读一读题目 Posted by:sleepboy at 2004-10-05 20:55:32
while((p != e) || (p != i)) {
	if(p < e) {
			p += 23;
		}
		else if(e < i){
			e += 28;
		}
		else {
			i += 33;
		}
	}
}
改成
for( ; ; i += 33 ) 
{ 
if(i >d && i >= p && i >= e && i >= i && (i-p)%23 == 0 && (i-e)%28 == 0 ) 
{ 
days = i % 21252 ; 
break; 
} 
}
就过了,还是有些不解啊

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