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

原因及测试数据

Posted by lijingwei at 2011-08-05 18:13:06 on Problem 1595
In Reply To:提交了n次wa,最后改1001为1101就AC Posted by:wolfchuyan at 2007-07-05 18:31:04
我的代码中   i<=cnt/2+c&&prime[i]<=n
这个地方没有判断i越界没有,即prime数组size-1,然后越界的地方直接默认全为0,不信试一试 1000 1000这个数据,看你的输出后面是不是巨多0 。。。

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