如下所示 给出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
An Easy GameTime Limit: 2 Seconds Memory Limit:
65536 KBOne day, Edward and Flandre play a game. Flandre will show two
01-strings s1 and s2, the leng....
分类:
其他好文 时间:
2014-06-06 23:24:46
阅读次数:
248
Function 函数
Swift使用func关键字来声明变量,函数通过函数名加小括号内的参数列表来调用。使用->来区分参数名和返回值的类型:1 func greet(name:
String, day: String) -> String {2 return "Hello \(name)...
分类:
其他好文 时间:
2014-06-06 16:41:44
阅读次数:
278
Today is the last day that all the laptops of
winXP OS should be upgrade to WIN7. After updated. when i tried to debug my
application,i received this ...
分类:
其他好文 时间:
2014-06-06 15:51:14
阅读次数:
275
Problem Description:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most two transa...
分类:
其他好文 时间:
2014-06-05 09:33:52
阅读次数:
342
Finding Nemo
Time Limit: 2000MS
Memory Limit: 30000K
Total Submissions: 7373
Accepted: 1715
Description
Nemo is a naughty boy. One day he went into the deep sea all b...
分类:
其他好文 时间:
2014-06-03 03:04:50
阅读次数:
348
Finding NemoTime Limit: 2000MSMemory Limit:
30000KTotal Submissions: 7376Accepted: 1717DescriptionNemo is a naughty boy. One
day he went into the deep...
分类:
其他好文 时间:
2014-06-01 12:23:25
阅读次数:
200
add_months(trunc(to_date('2013','yyyy') ,'yyyy'),12)-1 2013年最后一天
trunc(to_date('2013','yyyy') ,'yyyy') 2013年第一天
5月的最后一天
select last_day(to_date('2013-05','yyyy-mm')) d from dual...
分类:
数据库 时间:
2014-06-01 00:07:37
阅读次数:
345
这几天都有一些任务要跟, 把ios的学习拉后, 看看要抓紧咯,
看看轮到的学习的是UITableView。BIDViewController.h#import @interface BIDViewController :
UIViewController@property (copy, nonato...
分类:
移动开发 时间:
2014-05-31 11:27:25
阅读次数:
386
vim mysql.sh#!/bin/bashDAY=`date
+%Y-%m-%d`//日期以年月日显示并赋予DAY变量SIZE=`du -sh
/var/lib/mysql//查看mysql的大小并且赋予变量SIZEecho "Date :$DAY" >>
/tmp/mysqlbak.txt//...
分类:
数据库 时间:
2014-05-30 07:14:46
阅读次数:
240