摘要: 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.Find the sum of all numbers which are equal to the sum of the factorial of their digits.Note: as 1! = 1 and 2! = 2 are not sums they are not included.#include #include #include #include #include #include int factorial(int n) //阶乘函数 { ... 阅读全文
posted @ 2013-07-25 23:13 cpoint 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 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 3121716 15 1413It can be verified that the sum of the numbers on the diagonals is 101.What is the sum of the numbers on the diagonals in a 1001 by 100 阅读全文
posted @ 2013-07-25 21:34 cpoint 阅读(223) 评论(0) 推荐(0) 编辑
浏览次数:travelocity promotion codes