随笔 - 15,  文章 - 0,  评论 - 181,  阅读 - 18016
摘要: 原题:Starting in the top left corner of a 22 grid, there are 6 routes (without backtracking) to the bottom right corner.How many routes are there through a 2020 grid?翻译:/** 解释:* 2乘2的正方形,左上角到右下角是这样6种走法。*... 阅读全文
posted @ 2010-05-18 10:56 干田 阅读(217) 评论(5) 推荐(1) 编辑
摘要: 原题:By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6thprime is 13.What is the 10001stprime number?翻译:列出前6个素数分别是:2,3,5,7,11,和13,我们发现第6个素数是13。那么第 10001 个素数是多少?思路:代码Co... 阅读全文
posted @ 2010-05-18 10:53 干田 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 原题:/** 原题:* A Pythagorean triplet is a set of three natural numbers, a b c, for which,* * a^2 + b^2 = c^2* * For example, 32 + 42 = 9 + 16 = 25 = 52.* * There exists exactly one Pythagorean triplet fo... 阅读全文
posted @ 2010-05-18 10:48 干田 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 原题:/** 原题:* Find the greatest product of five consecutive digits in the 1000-digit number.* 73167176531330624919225119674426574742355349194934* 96983520312774506326239578318016984801869478851843* 8586... 阅读全文
posted @ 2010-05-18 10:36 干田 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 原题:Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...Find the sum of all... 阅读全文
posted @ 2010-05-18 10:15 干田 阅读(179) 评论(1) 推荐(0) 编辑
摘要: 原题:/** 原题:* If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.* * Find the sum of all the multiples of 3 or 5 below 1000.... 阅读全文
posted @ 2010-05-18 10:14 干田 阅读(201) 评论(1) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示