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:shiyimin at 2013-03-15 15:36:51 用unsigned char数组按位保存,并且只保存6n-1和6n+1这两类数,只需41666字节 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator