码迷,mamicode.com
首页 >  
搜索关键字:only prime factors    ( 11256个结果
LeetCode:Gray Code 题解
题目描述:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total n...
分类:其他好文   时间:2014-05-26 21:30:04    阅读次数:296
汇编语言-求所有的素因子
求给定整数的所有素因子1. 题目:求给定整数的所有素因子2. 要求:输入一个整数,求出其所有素因子,并表现为乘积方式,求因子的算法用子程序来实现。例如,输入480,输出480=2*2*2*2*2*3*5C++代码如下 1 //The program is to find all the prime....
分类:编程语言   时间:2014-05-26 13:06:37    阅读次数:356
Graph(2014辽宁ACM省赛)
日之前点击链接进行网上报名,只有报名成功的同学才能参加选拔赛。 问题 F: Graph 时间限制: 1 Sec  内存限制: 128 MB 提交: 30  解决: 5 [提交][状态][论坛] 题目描述 Your task is to judge whether a regular polygon can be drawn only by straightedge...
分类:其他好文   时间:2014-05-26 05:29:16    阅读次数:389
hdu2136Largest prime factor (关建在求素数,有点意思的题)
Problem Description Everybody knows any number can be combined by the prime number. Now, your task is telling me what position of the largest prime factor. The position of prime 2 is 1, prime 3 is ...
分类:其他好文   时间:2014-05-26 04:29:14    阅读次数:371
leetcode题目:Sum Root to Leaf Numbers和Longest Consecutive Sequence
题目一: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Fin...
分类:其他好文   时间:2014-05-26 04:06:41    阅读次数:248
看个人思路吧,清晰的话就简单 CodeForces 271A - Beautiful Year
It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distinct digits. Now you are suggested to solve the f...
分类:其他好文   时间:2014-05-24 21:52:34    阅读次数:320
2014辽宁ACM省赛 Prime Factors
问题 L: Prime Factors 时间限制: 1 Sec  内存限制: 128 MB 提交: 36  解决: 28 [提交][状态][论坛] 题目描述 I'll give you a number , please tell me how many different prime factors in this number. 输入 There is multiple te...
分类:其他好文   时间:2014-05-24 20:52:54    阅读次数:311
poj2739
Sum of Consecutive Prime NumbersTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 18427Accepted: 10122DescriptionSome positive integers can be....
分类:其他好文   时间:2014-05-24 10:32:00    阅读次数:266
ProjectEuler 003题
1 //题目:The prime factors of 13195 are 5, 7, 13 and 29.2 //What is the largest prime factor of the number 600851475143 ? 1 #include 2 using namespace s...
分类:其他好文   时间:2014-05-24 10:01:21    阅读次数:222
欧拉计划003. 最大素因子
Problem 3: Largest prime factor The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? 求出最大素因子 我的python代码如下: 又不懂的,或者更好的可以留言,大家互相...
分类:其他好文   时间:2014-05-22 18:40:17    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!