如下所示 给出2个解法
def euler_problem_18_1():
"""
this problem spend my half-day but noting to finished ,so bad
"""
rows = '''
3
7 4
2 4 6
100 5 9 3
'''
...
分类:
编程语言 时间:
2014-06-07 01:28:18
阅读次数:
261
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-06-07 01:27:37
阅读次数:
229
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-06-05 12:28:28
阅读次数:
277
title:
The sum of the squares of the first ten natural numbers is,
12 + 22 + ... + 102 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ... + 10)2 = 552 = 3025
Hence ...
分类:
其他好文 时间:
2014-06-05 12:03:29
阅读次数:
243
1、官网下载jdk-7u45-linux-x64.tar.gz
下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2、tar解压:tar -xzvf jdk-7u45-linux-x64.tar.gz
一般安装在/usr/local/目录下
3、配...
分类:
系统相关 时间:
2014-06-05 12:01:30
阅读次数:
470
环境:
Unbunt 12.04
Hadoop 2.2.x
Sprak 0.9
Scala scala-2.9.0.final.tgz
步骤
1. 下载 scala
2. 解压scala,然后修改/etc/profile,添加如下
export SCALA_HOME=/home/software/scala-2.9.0.final
export PATH=$P...
分类:
其他好文 时间:
2014-06-05 11:52:46
阅读次数:
484
python try except else finally 执行顺序详细分析...
分类:
编程语言 时间:
2014-06-05 11:43:56
阅读次数:
305
今天用虚拟机挂载了一个镜像文件,结果虚拟机不能打开(见下图),结果我还以为是我挂载的操作给影响的,后来经过谷歌查询,原来是因为linux内核升级的原因。仔细的想了一下,自己的确在上次关机的时候给电脑更新过软件。谷歌查询了解决办法,知道了原因,不过没按照网上说的去做。我是把虚拟机卸载(不会删除自己虚拟的系统),然后重新安装,结果就可以正常使用了。
卸载虚拟机VirtualBox(可以输入vir然后...
分类:
其他好文 时间:
2014-06-05 11:33:59
阅读次数:
222
今天试了好久总算是撞了无数的南墙啊,所以写这篇博客让各位正想给自己linux系统装qq的同志们一个提醒。各位同志们,linux下安装的qq都是烂货啊。要么没法安装,要么就是装完之后它会很开心的告诉你版本过低,无法登入哭,但是你又找不到更新的地方发火。运气好总算是试了各种版本之后给你装上了,并且用上了,结果你会发现功能差就算了,还没整几下就卡死了...
分类:
系统相关 时间:
2014-06-05 10:47:17
阅读次数:
251
一:在软件中心输入codeblocks,然后点击安装,等着装完就行了。
再按ctrl+alt+t 打开终端 输入 sudo apt-get install gcc
而后再输入sudo apt-get install g++
最后打开codeblocks写个 helloworld 试试吧。
二:helloworld小程序写完后,也编译通过了...
分类:
系统相关 时间:
2014-06-05 07:37:11
阅读次数:
391