Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:天哪,还有这样的错误!!In Reply To:天哪,还有这样的错误!! Posted by:liweishun2269 at 2007-07-27 14:43:54 j从i开始,一开始就能得到很大的tt值,产生溢出,变成了负数。 另外,你这个算法效率太低,没办法改进到不超时。请考虑一下伊拉脱森筛法,只要稍作改变就能应用。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator