摘要: poj1845——二分递归求等比数列前n项和,根号剪枝SumdivTime Limit:1000MSMemory Limit:30000KTotal Submissions:15268Accepted:3764DescriptionConsider two natural numbers A and... 阅读全文
posted @ 2015-03-26 23:34 __560 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 打印素数表筛选法void play_prime(){ //打印isprime(bool)表 memset(isprime,1,sizeof(isprime)); isprime[1]=0; for(int i=2;i<maxn;i++){ if(!isprime... 阅读全文
posted @ 2015-03-26 00:29 __560 阅读(221) 评论(0) 推荐(0) 编辑
摘要: poj3292——筛选法Semi-prime H-numbersTime Limit:1000MSMemory Limit:65536KTotal Submissions:7772Accepted:3360DescriptionThis problem is based on an exercise... 阅读全文
posted @ 2015-03-26 00:13 __560 阅读(202) 评论(0) 推荐(0) 编辑