摘要: #include<stdio.h> int f(int a,int b) { int c; int temp=0; if (a<b) { temp=a; a=b; b=temp; } while(a%b!=0) { c=b; b=a%b; a=c; if (a<b) { temp=a; a=b; b 阅读全文
posted @ 2021-11-03 13:42 20212301guo 阅读(312) 评论(0) 推荐(0)
摘要: 1 什么是斐波那契数列 斐波那契数列(Fibonacci sequence),又称黄金分割数列,因数学家莱昂纳多·斐波那契(Leonardo Fibonacci)以兔子繁殖为例子而引入,故又称为“兔子数列”,指的是这样一个数列:0、1、1、2、3、5、8、13、21、34、……在数学上,斐波那契数列 阅读全文
posted @ 2021-11-03 13:27 20212301guo 阅读(1125) 评论(0) 推荐(0)