自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

idea 15 激活

选择 License server 输入 http://idea.lanyus.com 点解 ok

2015-11-03 10:15:05 92

原创 第九题

[code="java"]public class Task_9 { /** * 已知现在有唯一的自然数三元组(a,b,c)满足: a≤b≤c 且 a2+b2=c2 且 a+b+c = 1000 求a×b×c的值。 * * @param args */ public static void main(String[] args) { for (int...

2011-06-15 11:52:10 127

原创 第八题

[code="java"]public class Task_8 { /** * 给你1000个0至9中的自然数,问你最大的连续5个数的乘积是多少。 * @param args */ public static void main(String[] args) { String string = "78641346984696467976446749865164...

2011-06-15 11:11:17 90

原创 projecteuler第七题

[code="java"] public class Task_7 { /** * 求第10001个素数的值。 * * @param args */ public static void main(String[] args) { int count = 10001; int num = 2; for(;;num++){ if(is...

2011-06-07 10:06:37 127

原创 projecteuler第六题

[code="java"]public class Task_6 { /** * 求(1+2+…+100)²-(1²+2²+22²+…+100²) * @param args */ public static void main(String[] args) { int n = 100; int sum1 = 0; int sum2 = 0; ...

2011-05-30 09:30:19 129

原创 projecteuler第四题

[code="java"] public class Task_4 { /** * 求所有的两个三位数的乘积中,最大的回文数。 * @param args */ public static void main(String[] args) { int maxNumber = 0; for(int i = 999;i >= 100;i --){ f...

2011-05-30 09:28:11 104

原创 projecteuler第五题

public class Task_5 { /** * 求能被1、2、……、20整除的最小的正整数。 * @param args */ public static void main(String[] args) { long j = 1; for (; j < 2147483647; j++) { for (int i = 1; i &lt...

2011-05-30 09:26:01 93

原创 ProjectEuler第三题

Find the largest prime factor of a composite number. 求600851475143的最大质因数。 [code="java"]public class Task_3 { /** * 求600851475143的最大质因数。 * @param args */ public static void main(String...

2011-05-24 10:14:02 154

ProjectEuler第二题

By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms. 求Fibonacci数列(1,2,3,5,8,……)中所有小于4000000的偶数的和。 [code="java"] publi...

2011-05-24 10:12:03 146

ProjectEuler第一题

Add all the natural numbers below one thousand that are multiples of 3 or 5. 求所有小于1000且能被3或5整除的自然数的和。 [code="java"]public class Task_1 { /** * 求所有小于1000且能被3或5整除的自然数的和。 * @param args */ ...

2011-05-24 10:09:37 84

原创 ProjectEuler 解题表格

欧拉项目ing

2011-05-24 09:38:23 78

原创 switch 和 if

switch 和 if那个的效率高呀,

2011-05-23 13:46:01 70

空空如也

空空如也

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

TA关注的人

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