码迷,mamicode.com
首页 >  
搜索关键字:prime    ( 2475个结果
1298 - One Theorem, One Year
1298 - One Theorem, One Year PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB A number is Almost-K-Prime if it has exactly K ...
分类:其他好文   时间:2016-04-11 12:00:33    阅读次数:219
lintcode:Ugly Number I
Ugly Number Write a program to check whether a given number is an ugly number`. Ugly numbers are positive numbers whose prime factors only include 2,  ...
分类:其他好文   时间:2016-04-11 11:46:41    阅读次数:152
Alexandra and Prime Numbers(思维)
Alexandra and Prime Numbers Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1658 Accepted Submis ...
分类:其他好文   时间:2016-04-11 11:43:12    阅读次数:115
[2016-04-09][codeforces][660][A][ Co-prime Array]
时间:2016-04-09 22:50:56 星期六 题目编号:[2016-04-09][codeforces][660][A][ Co-prime Array] 题目大意:给定一个数列,问至少需要插入多少个1 1091 109中的任一数字,才能使得相邻两个数字是互质的,输出最少次数和最后的数列 分... ...
分类:其他好文   时间:2016-04-10 00:57:29    阅读次数:271
poj 1338 Ugly Numbers(丑数模拟)
转载请注明出处:http://blog.csdn.net/u012860063?viewmode=contents 题目链接:http://poj.org/problem?id=1338 Description Ugly numbers are numbers whose only prime fa ...
分类:其他好文   时间:2016-04-09 12:06:16    阅读次数:116
POJ 3126 Prime Path
水题:直接判断素数+bfs 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <sstream> 5 #include <algorithm> 6 #include <list> 7 #include ...
分类:其他好文   时间:2016-04-08 23:00:48    阅读次数:349
HDU 1016 Prime Ring Problem
Prime Ring Problem Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 39699 Accepted Submission(s): ...
分类:其他好文   时间:2016-04-08 17:59:56    阅读次数:114
Prime Ring Problem---hdu1016(dfs)
http://acm.hdu.edu.cn/showproblem.php?pid=1016 这就是一道简单的dfs 但是是我自己想起来的 必须要记录一下 ...
分类:其他好文   时间:2016-04-07 20:39:37    阅读次数:237
lintcode-medium-Super Ugly Number
Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes ...
分类:其他好文   时间:2016-04-07 08:20:37    阅读次数:124
lintcode-easy-Ugly Number
Write a program to check whether a given number is an ugly number`. Ugly numbers are positive numbers whose prime factors only include 2,3, 5. For exa ...
分类:其他好文   时间:2016-04-07 07:08:38    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!