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 |
原因及测试数据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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator