码迷,mamicode.com
首页 >  
搜索关键字:fibonacci again and    ( 2291个结果
C Good String Codeforces Round #560 (Div. 3)
Let's call (yet again) a string good if its length is even, and every character in odd position of this string is different from the next character (t ...
分类:其他好文   时间:2019-10-04 11:09:08    阅读次数:90
1003-模拟赛
A 没什么好说的,$f[i] = f[i 1] + f[i 2] f[i 11]$ 都没推出来,更没有想到用用矩阵乘法+KSM来求(类似Fibonacci的矩阵乘法来整),模拟暴力混$60$ B 每日一失智 认认真真算空间复杂度,$10005 \times 10005$再抹掉$6$个$0$,算出来$ ...
分类:其他好文   时间:2019-10-03 23:44:33    阅读次数:106
简单博弈论总结
简单博弈论 本次简单博弈论讲解六个知识点: 1:bash博弈;2:nim博弈;3:威佐夫博弈;4:Fibonacci博弈;5:sg函数; 首先介绍博弈论问题有如下几个特点 1:博弈模型为两人轮流决策的博弈。并且两人都使用最优策略来取得胜利。 两个玩家,都会采取最优的决策,那么如果存在一个局面为必胜局 ...
分类:其他好文   时间:2019-10-03 15:53:42    阅读次数:84
Codeforces Round #590 (Div. 3)(e、f待补
https://codeforces.com/contest/1234/problem/A A. Equalize Prices Again 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 int ...
分类:其他好文   时间:2019-10-03 14:33:24    阅读次数:177
CF788A Functions again dp
求一个最长子段和就完了,可以出T1? code: ...
分类:其他好文   时间:2019-10-03 10:23:37    阅读次数:60
[codeforces1221D] Make The Fence Great Again dp
题目: time limit per test 2 seconds time limit per test memory limit per test 256 megabytes memory limit per test input standard input input output stan ...
分类:其他好文   时间:2019-10-02 14:47:35    阅读次数:82
Codeforces Round #590
题目链接: "Round 590" 题目答案: "官方Editorial" 、 "My Solution" A. Equalize Prices Again 签到题还WA了一发,向上取整有点问题: 能保证6位精度(有效数字), 能保证15位精度。但是 和`double 1.0 sum / n dou ...
分类:其他好文   时间:2019-10-02 14:45:36    阅读次数:58
noip复习之数学(2)——递推关系
1.问题一:兔子的繁殖(斐波拉契数列) ? f[n]=f[n 1]+f[n 2] $$ Fibonacci:f(n)=\frac{1}{\sqrt{5}}\left(\frac{1+\sqrt{5}}{2}\right)^n \frac{1}{\sqrt{5}}\left(\frac{1 \sqrt ...
分类:其他好文   时间:2019-10-01 23:09:58    阅读次数:183
python数据类型
致敬hello world! print("hello world!") print("hello again") print("this is the 3rd line, \n", "and this is also the 3rd line") print("this is the 3rd li ...
分类:编程语言   时间:2019-09-30 13:01:22    阅读次数:92
HDU 1020-1029
1020 1021 Fibonacci again 问题重述:F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2);给定一系列n,求f(n)是否被3整除; 思路:硬算,暴力求解; 正确思路:找规律,发现n%4==2那么就可以被f(n)就可以被3整除; ...
分类:其他好文   时间:2019-09-26 18:39:05    阅读次数:96
2291条   上一页 1 ... 18 19 20 21 22 ... 230 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!