自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

GodLike

世界上最遥远的距离不是牛 A 和 牛 C 之间的狭小空隙而是我们当中有人在通往牛 B 的路上一路狂奔而有人中途就放弃了

  • 博客(22)
  • 资源 (8)
  • 收藏
  • 关注

原创 projecteuler---->problem=13----Large sum

title:Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.371072875339021027987979982208375902465101357402504637693767749000971264812489697007805041701826053

2014-05-31 15:51:43 993

原创 projecteuler---->problem=12----Highly divisible triangular number

title:The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:1, 3, 6, 10,

2014-05-31 13:40:50 1116

原创 projecteuler---->problem=11----Largest product in a grid

In the 2020 grid below, four numbers along a diagonal line have been marked in red.08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 0849 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56

2014-05-31 11:50:29 1066

原创 projecteuler---->problem=10----Summation of primes

title:The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two million.翻译:10以下的质数的和为2 + 3 + 5 + 7 = 17。请求出200,0000以下所有质数的和。import math,timed

2014-05-31 10:38:00 931

原创 projecteuler---->problem=9----Special Pythagorean triplet

title:A Pythagorean triplet is a set of three natural numbers, a b c, for which,a2 + b2 =c2For example, 32 + 42 = 9 + 16 = 25 = 52.There exists exactly one Pythagorean triplet for wh

2014-05-31 09:36:45 1143

原创 projecteuler---->problem=8----Largest product in a series

title:The four adjacent digits in the 1000-digit number that have the greatest product are 9 9 8 9 = 5832.731671765313306249192251196744265747423553491949349698352031277450632623957831

2014-05-31 09:34:36 1661

原创 java 实现打印当前月份的日历

实现当前日历的打印,当前日期用*来表示。关键得出这个月的第一天是星期几。基姆拉尔森计算公式 W= (d+2*m+3*(m+1)/5+y+y/4-y/100+y/400) mod 7  在公式中d表示日期中的日数+1,m表示月份数,y表示年数。   注意1:在公式中有个与其他公式不同的地方:   把一月和二月看成是上一年的十三月和十四月,例:如果是2004-1-1

2014-05-30 14:09:25 3104

原创 projecteuler---->problem=7----10001st prime

title:By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.What is the 10 001st prime number?翻译:通过列出前6个质数,我们可知第6个质数是13。那么第10001个质数是

2014-05-28 20:43:56 871

原创 projecteuler---->problem=6----Sum square difference

title:The sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385The square of the sum of the first ten natural numbers is,(1 + 2 + ... + 10)2 = 552 = 3025Hence

2014-05-28 16:53:57 938

原创 projecteuler---->problem=5----Smallest multiple n个数求最小公倍数

title:2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.What is the smallest positive number that is evenly divisible by all of the nu

2014-05-28 16:50:03 1332

原创 projecteuler---->problem=4----Largest palindrome product

title:Largest palindrome productProblem 4A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 99.Find the l

2014-05-28 15:36:17 996

原创 projecteuler---->problem=3----Largest prime factor

题目:The prime factors of 13195 are 5, 7, 13 and 29.What is the largest prime factor of the number 600851475143 ?翻译:13195的质因数有5丶7丶13丶29。问:600851475143的最大质因数是……?解答:import matha=6

2014-05-28 11:50:58 908

原创 projecteuler---->problem:2

题目: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, ...By consider

2014-05-28 11:46:42 846

原创 projecteuler---->problem:1

题目: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.翻译:

2014-05-27 22:45:25 837

原创 Java实现HangMan自动解题程序---初涉AI

猜单词游戏(英文:Hangman,“上吊的人”之意)是一个双人游戏。一位玩家想一个字,另一位尝试猜该玩家所想的字中的每一个字母。要猜的字以一列横线表示,让玩家知道该字有多少个字母。如果猜字的玩家猜中其中一个字母,另一位便须于该字母出现的所有位置上写上该字母。如果猜的字母没有于该字中出现,另一位玩家便会画吊颈公仔的其中一笔。游戏会在以下情况结束:“我要t字。”“有, 在第八和第十一位

2014-05-25 20:46:14 5627

转载 Java中类方法不能访问实例方法

我们已经知道类体中的方法分为实例方法和类方法两种,用static修饰的是类方法。二者有什么区别呢?当一个类创建了一个对象后,这个对象就可以调用该类的方法。       当类的字节码文件被加载到内存时,类的实例方法不会被分配入口地址,当该类创建对象后,类中的实例方法才分配入口地址,从而实例方法可以被类创建的任何对象调用执行。需要注意的是,当我们创建第一个对象时,类中的实例方法就分

2014-05-24 11:23:07 4118 1

转载 java 中对文件操作

平常经常使用JAVA对文件进行读写等操作,这里汇总一下常用的文件操作。1、创建文件[java] view plaincopypublic static boolean createFile(String filePath){      boolean result = false;      File file = new File(

2014-05-23 18:06:37 779

原创 数据结构与算法二

1.课程安排表:1. 线性表2. 字符串3. 栈和队列4.树5.查找6.排序7.暴力枚举法8.广度优先搜索9.深度优先搜索10.分治11.贪心12.动态规划13.图14.数学方法与常见模型15.大整数运算16. 基础功能2.   编程技巧:1.把较大的数组放在main 函数(全局变量)外,作为全局变量,这样可以防止栈溢出,

2014-05-23 14:27:09 1187

转载 Step by step use kali linux OS

1.更新软件源:root权限:leafpad /etc/apt/sources.list然后添加以下较快的源: deb http://http.kali.org/kali kali main non-free contribdeb-src http://http.kali.org/kali kali main non-free contribdeb http://s

2014-05-20 20:11:07 837

原创 编译器DIY————序

突然间有一种冲动想自己写一个编译器。

2014-05-18 17:11:39 1262 1

原创 数据结构与算法一

题目一:求1!+2!+…..+n! 的和的后6位,(注意n的范围)#include using namespace std;const int MAX = 1000000;int getResu(int n){ int sum=0; int temp= 1; for(int i=1; i <= n; i++) { temp *= i; temp %= MAX;

2014-05-16 08:53:17 1047

原创 玩转CPU之直线

最近在看编程之美,看到第一个问题时,一下子就被吸引了,原来在windows 的任务管理器中还可以让CPU舞动起来,再一次的相信了编程中只有想不到没有做不到,对于书中的做法和网上的实现大致都相同,不过在看后面的解法之前,我的解法和书中第一种简单的控制之法相同,而且我还引入了一个实时监测CPU主频的函数,可以移植到其他的PC上。#include #include using namespac

2014-05-08 21:03:36 1243

用JAVA语言处理AutoCAD图形数据的研究

用JAVA语言处理AutoCAD图形数据的研究

2013-12-24

java俄罗斯方块初级版

java俄罗斯方块初级版 多多交流,希望大家多多发现bug

2013-05-08

深入解析SQL Server 2008

深入解析SQL Server 2008 的第二部分

2013-04-19

深入解析SQL Server 2008.part1

深入解析SQL Server 2008 数据库中的巨作,你懂的! 这个文件要两个压缩文件

2013-04-19

数据库系统实现

里面描写的是数据库底层的操作和实现,对于想深入了解数据库的人来说,这本书会是一个很大的帮助!

2013-04-01

java api 中文版 chm 格式

java api 中文版 chm 格式 javase 的api 查询文档,.chm格式,使用与window 操作系统

2012-12-20

java 关键字查询文档

java 的关键字查询文档以网页的形式来模仿API力图实现方便,快捷,详细于一体!

2012-10-07

空空如也

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

TA关注的人

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