| ||||||||||
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 |
一种建素数表的方法先把整个表标记为true,然后从2开始往上扫描,第一次把2的倍数标记为false,第二次把3的倍数标记为false,第三次把5的倍数标记为false...以此类推。 当然了这种方法效率不高,我的代码用了400ms+。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator