如下所示 给出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
原文链接:11gR2 dataguard 备库文件损坏处理一例
某客户的一套11gR2 dataguard环境出现异常,检查发现是备库出现文件损坏,且无法正常情况,已经超过1个多月没同步了。 我们先来看下备库的日志:
.......省略部分内容
See Note 411.1 at My Oracle Support for error and packaging details.
S...
分类:
其他好文 时间:
2014-06-07 01:25:07
阅读次数:
217
title:
Largest palindrome product
Problem 4
A 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-06-07 01:24:27
阅读次数:
398
最近自己要去深圳,开始人生的第二份工程,所以整理以前自己写过的小玩意代码(跟自己工作的代码无关),自己下班回家写的代码,准备卸载简历里面去求职。代码风格自己有注意,但还是每次看自己以前写的代码就感觉是那么丑。
1:NDIS实现类似P2P终结者的核心代码。
说明:最近辞职以后在写东西,自己开始玩驱动开发,发现还是没有想象中难,但环境还是比应用层开发环境还是差多了,要非常注意内存...
分类:
其他好文 时间:
2014-06-07 01:20:27
阅读次数:
637
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
环境:
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
怎样 用你的电话 呼叫Arduino,用Twilio和Yaler.net就可以做到!
Twilio是一个网页服务器,可以把所有的消息都转移到电话中。这是一个用于电话通讯的REST API,托管于云服务器。基于这样的环境,当有人呼叫Arduino预先设好的电话号时,Twilio向Arduino请求一个新的voice.xml文件。响应内容读给呼叫人Alice,一端发向语音识别引擎的Twilio的文本的语音。...
分类:
其他好文 时间:
2014-06-05 10:01:14
阅读次数:
712
在javascript中闭包是一个很不好理解的概念,但是确实一个不可逃避的东西,那么今天我们就来一起学习一下闭包。
什么是闭包?
闭包:官方”的解释是:闭包是一个拥有许多变量和绑定了这些变量的环境的表达式(通常是一个函数),因而这些变量也是该表达式的一部分。相信读完这句话以后,你就更加不知道什么是闭包了。其实通俗的说闭包就是一个函数a内部的局...
分类:
编程语言 时间:
2014-06-05 06:19:03
阅读次数:
254