Swift关键字详细介绍每一种语言都有相应的关键词,每个关键词都有他独特的作用,来看看swfit中的关键词: 关键词:用来声明的:“ class, deinit, enum, extension, func, import, init, let, protocol, static, struct, ...
分类:
移动开发 时间:
2015-07-09 00:44:01
阅读次数:
170
列表,F#里的列表也是递归结构,这种递归结构让语法更加的清晰和易懂[]let main argv = let list1 = [1;3;5] list1 |> printfn "%A" let list2 = [2..2..10] list2 |> printfn "%A"...
分类:
其他好文 时间:
2015-07-08 20:42:07
阅读次数:
102
Greedy.
证明:
Let's say we have job 1, 2, ..., n, and they have time and fine as t1, f1, t2, f2, ..., tn, fn
and they are in the order of t1/f1
So this is the objective schedule. Now w...
分类:
其他好文 时间:
2015-07-07 16:59:38
阅读次数:
141
Let's create a simple website by django ...step01:django-admin startproject x01step02:cd x01lsYou will see ...or you can use tree:treestep03:write the...
分类:
其他好文 时间:
2015-07-07 12:32:11
阅读次数:
109
Time Limit:1000MSMemory Limit:30000KTotal Submissions:22111Accepted:7986DescriptionSeveral currency exchange points are working in our city. Let us su...
分类:
其他好文 时间:
2015-07-07 10:49:18
阅读次数:
111
数组的定义:[]let main argv = let iArr1 = [|1; 3; 5; 7; 9|] iArr1 |> printfn "%A" let eArr = [| |] eArr |> printfn "%A" let iArr2 = [|1....
分类:
编程语言 时间:
2015-07-06 21:25:35
阅读次数:
153
//---------------- 函数 ---------------------------//func为函数名关键字//一个参数//func+函数名+(参数名:参数类型)-> 返回类型func sayHello(personName: String) -> String { let ...
分类:
移动开发 时间:
2015-07-06 19:24:00
阅读次数:
160
Well, so many people has tried to solve this problem using DP. And almost all of them get TLE (if you see a DP solution that gets accepted, please let...
分类:
其他好文 时间:
2015-07-06 13:46:30
阅读次数:
136
流程控制关键字if: let mutable x = 17*17 - 15*15 if x % 2 = 1 then x ]let main argv = let nr_fib n = let mutable a,b,i = 1I,1I,1 while...
分类:
其他好文 时间:
2015-07-05 18:27:59
阅读次数:
90