- 博客(15)
- 资源 (8)
- 收藏
- 关注
原创 projecteuler---->problem=34----Digit factorials
Problem 34145 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
2014-08-25 10:05:11 1122
原创 projecteuler---->problem=36----Double-base palindromes
Problem 36The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.(Please
2014-08-25 09:21:20 1137
原创 projecteuler---->problem=35----Circular primes
Problem 35The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime.There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13,
2014-08-22 17:05:15 1375
原创 projecteuler---->problem=33----Digit canceling fractions
Problem 33The fraction 49/98 is a curious fraction, as an inexperienced mathematician in attempting to simplify it may incorrectly believe that49/98 = 4/8, which is correct, is obtained by cance
2014-08-22 16:07:49 1231
原创 projecteuler---->problem=32----Pandigital products
Problem 32We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once; for example, the 5-digit number, 15234, is 1 through 5 pandigital.The produ
2014-08-22 15:28:57 1406
原创 projecteuler---->problem=31----Coin sums 无限背包计算可能存在的次数
Problem 31In England the currency is made up of pound, £, and pence, p, and there are eight coins in general circulation:1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).It is possible to
2014-08-21 11:09:46 1431
原创 projecteuler---->problem=30----Digit fifth powers
Problem 30Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits:1634 = 14 + 64 + 34 + 448208 = 84 + 24 + 04 + 849474 = 94 + 44 + 74 + 44
2014-08-21 09:36:07 1148
原创 projecteuler---->problem=29----Distinct powers
Problem 29Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5:22=4, 23=8, 24=16, 25=3232=9, 33=27, 34=81, 35=24342=16, 43=64, 44=256, 45=102452=25, 53=125, 54=625, 55=312
2014-08-21 08:21:10 1119
转载 Python集合(set)类型的操作
python的set和其他语言类似, 是一个无序不重复元素集, 基本功能包括关系测试和消除重复元素. 集合对象还支持union(联合), intersection(交), difference(差)和sysmmetric difference(对称差集)等数学运算.sets 支持 x in set, len(set),和 for x in set。作为一个无序的集合,sets不记录元素位置或者
2014-08-21 08:07:28 584
原创 projecteuler---->problem=28----Number spiral diagonals
Problem 28Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows:21 22 23 24 2520 7 8 9 1019 6 1 2 1118 5 4 3 1217 16
2014-08-20 17:00:28 981
原创 projecteuler---->problem=27----Quadratic primes
Euler discovered the remarkable quadratic formula:n² + n + 41It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. However, when n = 40, 402 + 40 + 41 = 40
2014-08-20 16:06:43 1111
原创 Project Euler 26 计算小数位循环的位数
A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given:1/2= 0.51/3= 0.(3)1/4= 0.251/5
2014-08-20 15:34:30 1557
转载 mac 配置 tomcat
第一步:下载Tomcat 这里Himi下载的tomcat version:7.0.27直接上下载地址:http://tomcat.apache.org/download-70.cgi直接下载如下选中即可:第二步: 下载完成后 ,然后随意放目录吧,这里Himi放入 /usr/local/右键你的mac的Finder->前往文件夹->
2014-08-20 08:45:03 2458 1
原创 LeetCode 2 Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another expression.Some examples: ["2", "1",
2014-08-18 16:42:31 768
原创 LeetCode 第一题剪彩自己的leetCode之路
Reverse Words in a String Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.
2014-08-18 16:01:18 1332
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人