码迷,mamicode.com
首页 >  
搜索关键字:prime    ( 2475个结果
light_oj 1356 素数独立集,二分图最大独立集
light_oj 1356 素数独立集,二分图最大独立集B -Prime IndependenceTime Limit:3000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusPracticeLightOJ 1356Descr...
分类:其他好文   时间:2015-06-17 00:38:56    阅读次数:605
LeetCode:Count Primes
Problem:Description:Count the number of prime numbers less than a non-negative number, n.Credits:Special thanks to @mithmatt for adding this problem a...
分类:其他好文   时间:2015-06-16 22:53:33    阅读次数:137
[HDU 1973]--Prime Path(BFS,素数表)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1973Prime PathTime Limit: 5000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Problem De...
分类:其他好文   时间:2015-06-16 12:59:05    阅读次数:121
XTU1242:Yada Number
Yada Number Problem Description: Every positive integer can be expressed by multiplication of prime integers. Duoxida says an integer is a yada number if the total amount of 2,3,5,7,11,13 in its...
分类:其他好文   时间:2015-06-14 20:04:45    阅读次数:344
C++ const总结
编程中是否遇到这样情况?(基本内容来源于C++ Prime)1、用一个变量表示缓冲区的大小。当我们觉得不合适时,直接改变变量值即可,可以很方便调整缓冲区大小2、但要警惕程序不小心改变了这个值OK,遇到这样情况,使用const修饰符即可。言简意赅,总结原则1、const对象必须初始化。因为const对...
分类:编程语言   时间:2015-06-13 17:00:25    阅读次数:128
UVA 10200 记忆打表,素数筛,浮点误差
UVA 10200 区间预处理,浮点误差W -Prime TimeTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVA 10200Description题意:测试找素数函数f(n)=n^...
分类:其他好文   时间:2015-06-12 00:40:37    阅读次数:213
POJ 2909
1 #include 2 #include 3 #define M 35000 4 #include 5 #define N 3800 6 using namespace std; 7 8 int prime [N]; 9 void give_list();10 int main()11 {12.....
分类:其他好文   时间:2015-06-11 12:32:45    阅读次数:107
POJ 2603
1 #include 2 #include 3 #define M 350000 4 #define N 30000 5 using namespace std; 6 7 int boo[10000]; 8 int prime[N]; 9 void give_list();10 int ma...
分类:其他好文   时间:2015-06-11 12:20:21    阅读次数:114
Algorithms
Count prime numbers not exceeding n(n>0)Pseudocode:Input: an integer n > 1 Let A be an array of Boolean values, indexed by integers 2 to n,initially a...
分类:其他好文   时间:2015-06-11 06:57:38    阅读次数:81
区间素数筛模版
区间素数筛模版筛出区间[a,b]的素数。(b-a prime;bool isP[maxn];vector P;void play_prime(){ memset(isprime,1,sizeof(isprime)); isprime[1]=0; for(int i=2;i<maxn...
分类:其他好文   时间:2015-06-10 14:08:01    阅读次数:101
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!