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 w20810 at 2015-02-08 13:55:48 on Problem 3641
bool isp(long long x)
{
	if(x==2)
		return true;
	long long k=sqrt(x*1.0),i;
	for(i=2;i<=k;i++)
		if(x%i==0)
			return false;
	return true;
//	for(i=0;prime[i]<=k;i++)
//		if(x%prime[i]==0)
//			return false;
//	return true;
}
用打的表判断就RE

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