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 mewiteor at 2015-05-11 17:08:26 on Problem 2262
In Reply To:这里用素数筛法,不会内存空间不够么,求高手正解 Posted by:shiyimin at 2013-03-15 15:36:51
用unsigned char数组按位保存,并且只保存6n-1和6n+1这两类数,只需41666字节

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