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:600多ms 还能怎么优化??

Posted by wqb0039 at 2006-09-29 09:25:34 on Problem 2478
In Reply To:600多ms 还能怎么优化?? Posted by:first at 2006-02-26 00:35:21
敢问高手for(j = 2; j < MAX; j ++)
	{
		for(i = 0; i < c ;i ++)
		{
			int k = j/sushu[i];
			if(j%sushu[i] == 0)
			{
				if(k%sushu[i] == 0)
					phy[j] = phy[k]*sushu[i];
				else
					phy[j] = phy[k]*(sushu[i] - 1);
				break;
			}
		}
		if(i == c)
			phy[j] = j - 1;
	}
是什么意思???

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