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 fff at 2006-10-04 10:28:52 on Problem 1011
In Reply To:我的程序居然还超时.... Posted by:zhzm883 at 2006-08-15 01:30:31
> 	for(j=max+1;;j++)
> 		if(sum%j==0)
> 			break;

j应该从max开始
比如
2
2 2
结果是2

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