A tuple is similar to list but can not be modified tuple1 = (1,) tuple2 = (1,2,3,4) to refer elemetn in a tuple var1 = tuple[0] var2 = tuple[-1] just ...
分类:
编程语言 时间:
2016-06-05 12:37:05
阅读次数:
131
List is similar to array but beyond. A list can contial various types of data. list=["string", 1223, 2.718] to refer an element from a list, we can us ...
分类:
编程语言 时间:
2016-06-05 12:27:34
阅读次数:
177
总是把这两个库中的extend搞混了所以写下来。 backbone中的extend实现了继承: 1 // Helper function to correctly set up the prototype chain for subclasses. 2 // Similar to `goog.inh ...
分类:
其他好文 时间:
2016-06-05 11:04:27
阅读次数:
171
Fibonacci Again Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51448 Accepted Submission(s): 243 ...
分类:
其他好文 时间:
2016-06-03 17:26:26
阅读次数:
115
codevs 1250 Fibonacci数列 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 钻石 Diamond codevs 1250 Fibonacci数列 codevs 1250 Fibonacci数列 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 钻 ...
分类:
其他好文 时间:
2016-06-02 13:20:38
阅读次数:
168
1732 Fibonacci数列 2 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 钻石 Diamond 题解 查看运行结果 1732 Fibonacci数列 2 1732 Fibonacci数列 2 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 钻石 Dia ...
分类:
其他好文 时间:
2016-06-02 13:07:55
阅读次数:
206
Operator repeat() is somewhat similar to retry(), but is not for handling operators. In this lesson we learn how repeat works. ...
分类:
Web程序 时间:
2016-05-31 20:44:26
阅读次数:
133
巨大的斐波那契数!
题目大意:斐波那契数列f[N],给你a,b,n,求f[a^b]%n.
思路:数论题。f[a^b]%n是有周期的,我们求出来这个周期后就可以将简化成f[(a%周期)^b]%周期运用分治法幂取模。
注意用unsigned long long(貌似是 long long的二倍),不然会溢出,又学了一招。。。
不知道哪的bug,一直改不对,一直,后来捡来别人的和自己一样的代码一...
分类:
其他好文 时间:
2016-05-30 15:19:08
阅读次数:
100
题目20:编写函数jsvalue,它的功能是:求Fibonacci数列中大于t的最小的一个数,结果由函数返回。其中Fibonacci数列F(n)的定义为:F(0)=0,F(1)=1F(n)=F(n-1)+F(n-2)最后调用函数writeDat()读取10个数据t,分别得出结果且把结果输出到文件ou ...
分类:
编程语言 时间:
2016-05-29 18:03:28
阅读次数:
156
Description Presumably, you all have known the question of stable marriage match. A girl will choose a boy; it is similar as the game of playing house ...
分类:
其他好文 时间:
2016-05-29 16:31:38
阅读次数:
156