码迷,mamicode.com
首页 >  
搜索关键字:prime    ( 2475个结果
UVa524
524 Prime Ring ProblemA ring is composed of n (even number) circles as shown in diagram. Putnatural numbers 1; 2; : : : ; n into each circle separatel ...
分类:其他好文   时间:2016-08-21 16:45:47    阅读次数:143
暑假练习赛 006 B Bear and Prime 100
Bear and Prime 100Crawling in process... Crawling failed Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practice ...
分类:其他好文   时间:2016-08-19 11:24:52    阅读次数:159
Super Ugly Number -- LeetCode
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-08-18 12:59:11    阅读次数:130
Ugly Number II -- LeetCode
Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, ...
分类:其他好文   时间:2016-08-18 12:39:45    阅读次数:102
POJ 1679 The Unique MST【MST是否唯一,Prime算法,最好的代码】
The Unique MST Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 27389   Accepted: 9816 Description Given a connected undirected graph, tell if its minimum s...
分类:编程语言   时间:2016-08-17 00:13:02    阅读次数:256
为什么要用Math.sqrt(i)方法
java 练习题 判断 101-200 之间有多少个素数,并输出所有素数 public class Prime { public static int count = 0; public static void main(String[] args) { for (int i = 101; i < ...
分类:其他好文   时间:2016-08-16 01:53:26    阅读次数:715
区间素数概率判定(高精度)
Euler is a well-known matematician, and, among many other things, he discovered that the formula n 2 + n + 41 produces a prime for 0 ≤ n < 40. For n = ...
分类:其他好文   时间:2016-08-14 16:16:31    阅读次数:157
204. 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-08-13 19:29:34    阅读次数:188
csu 1756(数论+去重)
Prime Time Limit: 3 Sec Memory Limit: 128 MBSubmit: 84 Solved: 12[Submit][Status][Web Board] Description 如果a,b的最大公约数是1,说明a,b是一对互素的数,给定你n个数字,希望你找出互素的数的 ...
分类:其他好文   时间:2016-08-12 23:33:53    阅读次数:192
POJ 1258 Agri-Net 【MST,Prime算法】
Agri-Net Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 52097   Accepted: 21722 Description Farmer John has been elected mayor of his town! One of his campa...
分类:编程语言   时间:2016-08-12 20:07:29    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!