Problem Description 2007年到来了。经过2006年一年的修炼,数学神童zouyu终于把0到100000000的Fibonacci数列(f[0]=0,f[1]=1;f[i] = f[i-1]+f[i-2](i>=2))的值全部给背了下来。接下来,CodeStar决定要考考他,于是 ...
分类:
其他好文 时间:
2019-09-26 10:06:23
阅读次数:
92
GoCN每日新闻(2019-09-25)1. Go module 再回顾 https://colobu.com/2019/09/23/review-go-module-again/2. 如何灵活地进行Go版本管理 https://juejin.im/post/5d848b66f265da03a716 ...
分类:
其他好文 时间:
2019-09-26 09:55:09
阅读次数:
68
Versioning information could not be retrieved from the NuGet package repository. Please try again later. vscode 修改文件 C:\Users\dong\.vscode\extensions\ ...
分类:
其他好文 时间:
2019-09-24 17:40:24
阅读次数:
162
斐波那契数列介绍: 斐波那契数列(Fibonacci sequence),又称黄金分割数列、因数学家列昂纳多·斐波那契(Leonardoda Fibonacci)以兔子繁殖为例子而引入,故又称为“兔子数列”,指的是这样一个数列:1、1、2、3、5、8、13、21、34、……在数学上,斐波那契数列以如 ...
分类:
编程语言 时间:
2019-09-24 13:49:26
阅读次数:
121
Easy The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two precedin ...
分类:
其他好文 时间:
2019-09-24 11:55:27
阅读次数:
57
题目链接:http://codeforces.com/contest/1221/problem/D 题意:给一个序列,要求修改某些位置的数字,使得这个序列的相邻的数不相等,每次修改,只能使得某个数字加一,每次修改的代价为b【i】,求最小所需的代价。 解题思路:经过简单分析,我们可以知道,每个数字最多 ...
分类:
其他好文 时间:
2019-09-22 21:43:48
阅读次数:
64
1334 (-2), pupilRank: 2668 (虽然比上次好,但是摆脱不了掉分的命运。。。) D. Make The Fence Great Again http://codeforces.com/contest/1221/problem/D 分析:对每个高度来说,最多升高两次,因此可以对这 ...
分类:
其他好文 时间:
2019-09-21 10:35:59
阅读次数:
80
题意:对于n个栅栏,对于每个$i$,有高度$a[i]$,对于任意$2 ...
分类:
其他好文 时间:
2019-09-21 01:27:08
阅读次数:
120
B. The ModcrabVova is again playing some computer game, now an RPG. In the game Vova's character received a quest: to slay the fearsome monster called ...
分类:
其他好文 时间:
2019-09-19 21:16:41
阅读次数:
125
题目描述 The cows are out exercising their hooves again! There are N cows jogging on an infinitely-long single-lane track (1 <= N <= 100,000). Each cow st ...
分类:
其他好文 时间:
2019-09-14 09:13:35
阅读次数:
109