码迷,mamicode.com
首页 >  
搜索关键字:fibonacci    ( 1243个结果
一些项目——Fibonacci Again
Problem Description There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2). Input Input consists of a sequence of lines, each containing an integer ...
分类:其他好文   时间:2015-05-28 18:06:50    阅读次数:114
ZOJ 3599 K倍动态减法游戏
下面的文字辅助理解来自http://blog.csdn.net/tbl_123/article/details/24884861博弈论中的 K倍动态减法游戏,难度较大,参看了好多资料才懵懂! 此题可以看作 Fibonacci 博弈的扩展,建议没弄懂 Fibonacci博弈的先学那个,个人整理ht.....
分类:其他好文   时间:2015-05-28 14:02:44    阅读次数:164
HDU - 3306 Another kind of Fibonacci 矩阵快速幂
题目大意:A(0) = 1 , A(1) = 1 , A(N) = X * A(N - 1) + Y * A(N - 2) (N >= 2). And we want to Calculate S(N) , S(N) = A(0) 2 +A(1) 2+……+A(n) 2. 解题思路:将An^2化开,得x * x * A(n-1) * A(n-1) + y * y * A(n-2) * A(n-2)...
分类:其他好文   时间:2015-05-28 09:37:41    阅读次数:202
uva 11582 Colossal Fibonacci Numbers!
幂取模...
分类:其他好文   时间:2015-05-27 13:59:24    阅读次数:104
HDU Fibonacci Again
Fibonacci Again Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 39   Accepted Submission(s) : 31 Font: Times New Roman | Verdana | Georgia ...
分类:其他好文   时间:2015-05-27 10:14:07    阅读次数:146
递归算法求解遍历(或穷举)问题
递归算法求解遍历(或穷举)问题递归问题可以理解为遍历问题,必须遍历出所有的数据来,才能进行相应的运算,比如Fibonacci问题、阶乘问题,必须把每一步的值都遍历出来,然后才能做加法或乘法。递归算法解决问题的特点:(1)必须有一个明确的递归结束条件,称为递归出口。(2)根..
分类:编程语言   时间:2015-05-22 02:02:24    阅读次数:385
递归算法求解遍历(或穷举)问题
递归算法求解遍历(或穷举)问题递归问题可以理解为遍历问题,必须遍历出所有的数据来,才能进行相应的运算,比如Fibonacci问题、阶乘问题,必须把每一步的值都遍历出来,然后才能做加法或乘法。递归算法解决问题的特点:(1)必须有一个明确的递归结束条件,称为递归出口。(2)根..
分类:编程语言   时间:2015-05-22 02:01:07    阅读次数:179
(记忆话搜索)POI Fibonacci Representation
Fibonacci RepresentationMemory limit: 64 MBThe Fibonacci sequence is a sequence of integers, called Fibonacci numbers, defined as follows:Its initial ...
分类:其他好文   时间:2015-05-20 17:52:05    阅读次数:120
MIT公开课:计算机科学及编程导论 Python 笔记4 函数分解抽象与递归
Lecture4:Decomposition and abstraction through functions;introduction to recursion 函数分解抽象与递归Functions 函数 block up into modules 分解为模块 suppress detail 忽略细节 例子:鸡兔同笼 回文字符串 Fibonacci...
分类:编程语言   时间:2015-05-18 16:40:54    阅读次数:142
hihocoder #1152 Lucky Substrings 【字符串处理问题】strsub()函数+set集合去重
#1152 : Lucky Substrings时间限制:10000ms单点时限:1000ms内存限制:256MB描述A string s is LUCKY if and only if the number of different characters in s is a fibonacci n...
分类:其他好文   时间:2015-05-17 18:32:32    阅读次数:218
1243条   上一页 1 ... 84 85 86 87 88 ... 125 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!