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 toacm_3j at 2007-07-28 14:24:13 on Problem 3292
In Reply To:天哪,还有这样的错误!! Posted by:liweishun2269 at 2007-07-27 14:43:54
j从i开始,一开始就能得到很大的tt值,产生溢出,变成了负数。
另外,你这个算法效率太低,没办法改进到不超时。请考虑一下伊拉脱森筛法,只要稍作改变就能应用。

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