循环计算斐波那契数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n1=1,n2=1,t=0; int k; scanf("%d",&k); if…… 题解列表 2023年11月17日 0 点赞 0 评论 128 浏览 评分:0.0
编写题解 2809: 菲波那契数列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a[1000],k;cin>>k;a[0]=1;a[1…… 题解列表 2024年05月12日 0 点赞 0 评论 119 浏览 评分:0.0
菲波那契数列(数组) 摘要:参考代码: ```c #include int main() { int k; scanf("%d",&k); int a[k]; for(int i=0;i…… 题解列表 2023年09月08日 0 点赞 0 评论 177 浏览 评分:0.0
建立数组,预设前两项,定义数组构成 摘要:解题思路:建立数组,预设前两项,定义数组的构成。注意事项:输出第k位数,对应的索引是k-1。参考代码:#include<iostream>using namespace std;int main(){…… 题解列表 2024年12月02日 0 点赞 0 评论 133 浏览 评分:0.0