题目描述 对于Fibonacci数列:1,1,2,3,5,8,13......大家应该很熟悉吧~~~但是现在有一个很“简单”问题:第n项和第m项的最大公约数是多少? Update:加入了一组数据。 输入输出格式 输入格式: 两个正整数n和m。(n,m<=10^9) 注意:数据很大 输出格式: Fn和 ...
分类:
其他好文 时间:
2018-10-05 15:10:45
阅读次数:
150
my team solve the problem in the contest with similar ideathis is a more deep analysis The main idea is that if some comparator can be defined so that ...
分类:
其他好文 时间:
2018-10-04 17:23:36
阅读次数:
150
题目链接 Problem DescriptionFibonacci numbers are well-known as follow: Now given an integer N, please find out whether N can be represented as the sum of ...
分类:
其他好文 时间:
2018-10-04 13:44:28
阅读次数:
183
A. Relic Discovery B. Pocket Cube C. Pocky D. Lucky Coins E. Fibonacci F. Lambda Calculus G. Coding Contest H. Pattern I. Travel Brochure J. Cliques K ...
分类:
其他好文 时间:
2018-10-04 11:41:21
阅读次数:
404
A - Relic Discovery 签到 B - Pocket Cube 直接模拟六种转法。 C - Pocky 记住ln(2)=0.693147。故ans = ln(L) / ln(d)。 D - Lucky Coins E - Fibonacci F - Lambda Calculus G ...
分类:
其他好文 时间:
2018-10-04 10:28:32
阅读次数:
155
The Fibonacci Numbers{0,1,1,2,3,5,8,13,21,34,55...} are defined by the recurrence: F0=0 F1=1 Fn=Fn-1+Fn-2,n>=2 Write a program to calculate the Fibona ...
分类:
其他好文 时间:
2018-10-02 18:00:06
阅读次数:
138
题目传送门:https://www.lydsy.com/JudgeOnline/problem.php?id=3298 博弈论经典结论题,我也没什么好说的。matrix67大佬比我想得深入的多:捡石子游戏、 Wythoff 数表和一切的 Fibonacci 数列 代码: #include<cstdi ...
分类:
其他好文 时间:
2018-10-01 21:06:45
阅读次数:
129
搜索引擎 " 某柠檬 " (综合类,什么都可以搜索) 百度网盘搜索引擎 " 盘搜一下 " \| " 搜白度盘 " \| " 狗头鹰 " \| " 搜盘盘 " 类似网站搜索 " Similar Site Search " 软件搜索 " 小众软件 " ...
分类:
其他好文 时间:
2018-10-01 17:13:13
阅读次数:
213
In the following, every capital letter represents some hexadecimal digit from 0 to f. The red-green-blue color "#AABBCC" can be written as "#ABC" in s ...
分类:
其他好文 时间:
2018-10-01 10:36:09
阅读次数:
295
class Solution { public: vector v1; vector v2; void GetLeaf(TreeNode* tree, int type) { if (tree->left != NULL || tree->right != NULL) { if (tree->lef... ...
分类:
其他好文 时间:
2018-09-27 22:19:40
阅读次数:
165