自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 project euler 06

<br />The sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385<br />The square of the sum of the first ten natural numbers is,(1 + 2 + ... + 10)2 = 552 = 3025<br />Hence the difference between the sum of the squares of the first

2010-08-19 15:42:00 170

原创 project euler 04

<br />A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 99.<br />Find the largest palindrome made from the product of two 3-digit numbers.<br /> <br /> <br /> <br /> int temp =

2010-08-19 15:39:00 200

原创 project euler 03

<br />The prime factors of 13195 are 5, 7, 13 and 29.<br />What is the largest prime factor of the number 600851475143 ?<br /> <br /> <br />long n = 600851475143;<br />            long max = 0;<br />            for (long i = n; i > 2; i--)<br />           

2010-08-19 15:38:00 227

原创 project euler 02

<br />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:<br />1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...<br />Find the sum of all the even-valued terms in the sequence wh

2010-08-19 15:37:00 170

原创 project 01

<br />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.<br />Find the sum of all the multiples of 3 or 5 below 1000.<br /> <br />源码如下:<br /> int K = 0;<br /> for (int i = 1; i

2010-08-19 15:35:00 202

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除