码迷,mamicode.com
首页 >  
搜索关键字:prime    ( 2475个结果
网络流(最大流)CodeForces 512C:Fox And Dinner
Fox Ciel is participating in a party in Prime Kingdom. There are n foxes there (include Fox Ciel). The i-th fox is ai years old. They will have dinner ...
分类:其他好文   时间:2016-10-03 00:10:20    阅读次数:240
Special Prime
Special Prime Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 415 Accepted Submission(s): 220 Pro ...
分类:其他好文   时间:2016-09-30 23:30:32    阅读次数:195
UVa 1644 Prime Gap (水题,暴力)
题意:给定一个数 n,求它后一个素数和前一个素数差。 析:先打表,再二分查找。 代码如下: ...
分类:其他好文   时间:2016-09-26 20:05:42    阅读次数:110
ural 1356. Something Easier 哥德巴赫猜想
1356. Something Easier Time limit: 1.0 secondMemory limit: 64 MB “How do physicists define prime numbers? Very easily: prime numbers are the number 2 ...
分类:其他好文   时间:2016-09-22 00:57:50    阅读次数:181
洛谷P1211 [USACO1.3]牛式 Prime Cryptarithm
P1211 [USACO1.3]牛式 Prime Cryptarithm 187通过 234提交 题目提供者该用户不存在 标签USACO 难度普及- 提交 讨论 题解 最新讨论 题面错误 题目描述 下面是一个乘法竖式,如果用我们给定的那n个数字来取代*,可以使式子成立的话,我们就叫这个式子牛式。 * ...
分类:其他好文   时间:2016-09-21 21:38:48    阅读次数:189
Count Primes
Description: Count the number of prime numbers less than a non-negative number, n. Analyse: start from 2, label 2 * 2, 2 * 3... as false; then move to ...
分类:其他好文   时间:2016-09-20 06:50:36    阅读次数:215
poj2739-Sum of Consecutive Prime Numbers
题目链接 http://vjudge.net/problem/POJ-2739 解题思路 先用筛法筛出素数,然后枚举就行了。 代码 ...
分类:其他好文   时间:2016-09-17 23:32:36    阅读次数:142
3998 - Prime k-tuple
{p1,..., pk : p1 < p2 <...< pk} is called a prime k -tuple of distance s if p1, p2,..., pk are consecutive prime numbers and pk - p1 = s . For example ...
分类:其他好文   时间:2016-09-16 22:51:09    阅读次数:213
204. Count Primes
Description: Count the number of prime numbers less than a non-negative number, n. 埃拉托斯特尼筛法 ...
分类:其他好文   时间:2016-09-14 07:19:03    阅读次数:162
LeetCode-Count Primes
Description: Count the number of prime numbers less than a non-negative number, n. Credits:Special thanks to @mithmatt for adding this problem and cre ...
分类:其他好文   时间:2016-09-14 01:58:04    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!