码迷,mamicode.com
首页 >  
搜索关键字:humble numbers    ( 7694个结果
欧拉项目007:第10001个素数
10001st prime Problem 7 By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st prime number? 使用埃拉托斯特尼筛法,不懂得自行Wiki 我的py...
分类:其他好文   时间:2014-05-26 05:35:25    阅读次数:248
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
uva11461Square Numbers
简单数论题。区间减法。 1 //Accepted 0 KB 9 ms 2 #include 3 #include 4 using namespace std; 5 const int MAXN = 100005; 6 int f[MAXN]; 7 void pre() 8 { 9 ...
分类:其他好文   时间:2014-05-26 02:54:57    阅读次数:278
ProjectEuler 006题
题目:The sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385The square of the sum of the first ten natural numbers is,(1 + ...
分类:其他好文   时间:2014-05-26 02:15:16    阅读次数:216
ProjectEuler 005题
题目:2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.What is the smallest positive number that...
分类:其他好文   时间:2014-05-26 02:12:53    阅读次数:167
52. 不用+、-、×、÷做加法[add two numbers without arithmetic]
add two numbers without arithmetic
分类:其他好文   时间:2014-05-26 01:25:43    阅读次数:224
关于可图化序列的一点结论 NEU 1429
Graphic SequenceA graphic sequence is a sequence of numbers which can be thedegree sequenceof somegraph. A sequence can be checked to determine if it ...
分类:其他好文   时间:2014-05-25 19:18:00    阅读次数:331
poj1142Smith Numbers
筛素数,分解质因子 1 //Accepted 620 KB 15 ms 2 //wa1 MAXN 太小了一开始用的10005; 3 //wa2 没判断素数 4 //wa3 分解质因子用的小于n 5 #include 6 #include 7 const int MAXN = 1000...
分类:其他好文   时间:2014-05-25 14:52:12    阅读次数:168
动态规划,就是这样! CodeForces 433B - Kuriyama Mirai's Stones
Kuriyama Mirai has killed many monsters and got many (namely n) stones. She numbers the stones from 1 to n. The cost of the i-th stone is vi. Kuriyama Mirai wants to know something about these sto...
分类:其他好文   时间:2014-05-25 07:24:48    阅读次数:315
Python基础1--变量类型
首先,在之前,我不是一个 Python玩家,我只是一个使用者,需要即取,现在,我要认真学习和记录,正确称为一个Python的玩家。 说明,这明显不是教程,是我自己理解并记录的笔记而已。 Python有五个标准的数据类型: Numbers(数字)String(字符串)List(列表)Tuple(元组)Dictionary(字典) 数字有四种数值类型:int,long ,float...
分类:编程语言   时间:2014-05-24 23:07:59    阅读次数:387
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!