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

这个不需要开平方,只要先判断一下这个数是不是素数,如果是打印n-1,否则跟上面一样,我的0ms

Posted by zhouxiaozi at 2009-03-06 16:52:55 on Problem 2368
In Reply To:这个算法居然用了快1000MS?想不通哦。 Posted by:queyue2004 at 2005-06-06 16:13:11


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