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

就一点不同,结果一个TLE一个32ms

Posted by hotwolf at 2012-02-18 15:15:06 on Problem 3048
for(i=2;i<=a/2;i++)
     if(a%i==0 && isPrime(a/i))
	return a/i;
32ms………………

	for(i=a/2;i>=2;i--)
		if(a%i==0 && isPrime(i))
			return i;
TLE

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