2809: 菲波那契数列 摘要:``` #include using namespace std; int main(){ int k,a=1,b=1,c=a+b; cin>>k; if (k …… 题解列表 2023年11月05日 0 点赞 0 评论 472 浏览 评分:9.9
菲波那契数列 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int k, a = 1, b = 1, c = 1; …… 题解列表 2023年07月12日 0 点赞 0 评论 413 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int k, a = 1, b = 1, c = 1; …… 题解列表 2023年07月09日 0 点赞 0 评论 426 浏览 评分:2.0
2809: 菲波那契数列 使用数组解决问题 摘要:解题思路:定义一个数组,并给数组的前两位赋值为1,使用for循环来计算第k位的数字大小参考代码:#include <iostream> using namespace std; int main(…… 题解列表 2023年04月11日 0 点赞 0 评论 365 浏览 评分:9.9
菲波那契数列(c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int k,sum; int f1 = 1, f2 = 1; cin …… 题解列表 2023年02月11日 0 点赞 0 评论 509 浏览 评分:9.9