码迷,mamicode.com
首页 >  
搜索关键字:euler    ( 502个结果
Project Euler:Problem 55 Lychrel numbers
If we take 47, reverse and add, 47 + 74 = 121, which is palindromic. Not all numbers produce palindromes so quickly. For example, 349 + 943 = 1292, 1292 + 2921 = 4213 4213 + 3124 = 7337 That is...
分类:其他好文   时间:2015-07-07 16:56:48    阅读次数:113
Project Euler:Problem 52 Permuted multiples
It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order. Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, con...
分类:其他好文   时间:2015-07-02 10:22:55    阅读次数:165
hdu1878 欧拉回路(无向图存在欧拉回路,入门题)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1878 【概念】 欧拉回路:若图G中存在这样一条路径,使得它恰通过G中每条边一次,则称该路径为欧拉路径。若该路径是一个圈,则称为欧拉(Euler)回路。 该题目是无向图: 无向图存在欧拉回路的充要条件 一个无向图存在欧拉回路,当且仅当该图所有顶点度数都为偶数,且该图是连通图。 ...
分类:其他好文   时间:2015-06-30 15:04:10    阅读次数:191
模板整理
欧拉函数模板//直接求解欧拉函数int euler(int n){ //返回euler(n) int res=n,a=n; for(int i=2;i*i1) res=res/a*(a-1); return res;}//筛选法打欧拉函数表#define Max 100000...
分类:其他好文   时间:2015-06-18 21:35:56    阅读次数:113
欧拉计划(python) problem 27
Quadratic primes Problem 27 Euler discovered the remarkable quadratic formula: n² + n + 41 It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. Howe...
分类:编程语言   时间:2015-06-17 21:37:46    阅读次数:149
欧拉函数模板
//直接求解欧拉函数int euler(int n){ //返回euler(n) int res=n,a=n; for(int i=2;i*i1) res=res/a*(a-1); return res;}//筛选法打欧拉函数表 #define Max 1000001int euler[Max];....
分类:其他好文   时间:2015-06-13 23:03:32    阅读次数:212
欧拉回路
欧拉路径:若图G中存在这样一条路径,使得它恰通过G中每条边一次,则称该路径为欧拉路径。若该路径是一个圈,则称为欧拉(Euler)回路。图论起源于18世纪,1736年瑞士数学家欧拉(Euler)发表了图论的第一篇论文“哥尼斯堡七桥问题”。在当时的哥尼斯堡城有一条横贯全市的普雷格尔河,河中的两个岛与两岸...
分类:其他好文   时间:2015-06-09 23:26:47    阅读次数:139
Project Euler:Problem 50 Consecutive prime sum
The prime 41, can be written as the sum of six consecutive primes: 41 = 2 + 3 + 5 + 7 + 11 + 13 This is the longest sum of consecutive primes that adds to a prime below one-hundred. The longest s...
分类:其他好文   时间:2015-06-07 17:35:13    阅读次数:129
Project Euler:Problem 48 Self powers
The series, 11 + 22 + 33 + ... + 1010 = 10405071317. Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000. #include #include using namespace std; string powe(int n) { stri...
分类:其他好文   时间:2015-06-07 12:39:28    阅读次数:128
Project Euler:Problem 46 Goldbach's other conjecture
It was proposed by Christian Goldbach that every odd composite number can be written as the sum of a prime and twice a square. 9 = 7 + 2×12 15 = 7 + 2×22 21 = 3 + 2×32 25 = 7 + 2×32 27 = 19 + 2...
分类:数据库   时间:2015-06-07 11:12:04    阅读次数:148
502条   上一页 1 ... 34 35 36 37 38 ... 51 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!