码迷,mamicode.com
首页 >  
搜索关键字:euler    ( 502个结果
Project Euler:Problem 39 Integer right triangles
Ifpis the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions forp= 120.{20,48,52}, {24,45,51},...
分类:其他好文   时间:2015-10-06 10:17:33    阅读次数:173
Project Euler 78:Coin partitions
Coin partitions Let p(n) represent the number of different ways in which n coins can be separated into piles. For example, five coins can separated in...
分类:其他好文   时间:2015-10-02 22:31:20    阅读次数:260
Project Euler 77:Prime summations
原题:Prime summationsIt is possible to write ten as the sum of primes in exactly five different ways:7 + 35 + 55 + 3 + 23 + 3 + 2 + 22 + 2 + 2 + 2 + 2Wh...
分类:其他好文   时间:2015-10-02 17:15:17    阅读次数:212
Project Euler 76:Counting summations
题目链接 原题: It is possible to write five as a sum in exactly six different ways: 4 + 13 + 23 + 1 + 12 + 2 + 12 + 1 + 1 + 11 + 1 + 1 + 1 + 1 How many diff...
分类:其他好文   时间:2015-10-02 10:07:32    阅读次数:189
欧拉回路 (Euler Circuit)
http://poj.org/problem?id=1780相关概念和算法参考:https://www.math.ku.edu/~jmartin/courses/math105-F11/Lectures/chapter5-part2.pdf#include #include using namesp...
分类:其他好文   时间:2015-09-28 00:16:29    阅读次数:217
欧拉函数
欧拉函数给定一个数N;求1 到n-1与他互为质数的数的个数欧拉函数可以求解euler(n)=n*(1-1/p1)(1-1/p2)(1-1/p3)(1-1/p4),,,,,P1 P2 P3 P4 。。。。。是n的质因数,比如10的质因数有2 5所以euler(10)=10*(1-1/2)*(1-1/5...
分类:其他好文   时间:2015-09-26 12:03:48    阅读次数:204
欧拉工程第70题:Totient permutation
题目链接 和上面几题差不多的 Euler's Totient function, φ(n) [sometimes called the phi function]:小于等于n的数并且和n是互质的数的个数 存在这样的数:N的欧拉数φ(n),是N的一个排列 例如:φ(87109)=79180 求在1--...
分类:其他好文   时间:2015-09-25 18:01:03    阅读次数:204
Project Euler:Problem 28 Number spiral diagonals
Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows:2122 23 242520 78 91019 6 12 1118 54 ...
分类:其他好文   时间:2015-09-23 14:50:07    阅读次数:130
SPOJ Play on Words
传送门WORDS1 - Play on Words#graph-theory#euler-circuitSome of the secret doors contain avery interesting word puzzle. The team of archaeologists has to ...
分类:其他好文   时间:2015-09-18 21:42:13    阅读次数:210
欧拉函数
欧拉函数,它又称为Euler's totient function、φ函数、欧拉商数等,对正整数n,欧拉函数是小于n且和n互质的正整数(包括1)的个数。例如Euler(8)=4,因为1,3,5,7均和8互质,下面用E(n)表示欧拉函数的值。 Euler函数表达通式:E(x)=x*(1-1...
分类:其他好文   时间:2015-09-15 19:52:12    阅读次数:157
502条   上一页 1 ... 28 29 30 31 32 ... 51 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!