首页
比赛
tracker
题库
课程
竞赛讨论区
登录
/
注册
去牛客
首页
>
斐波那契数列
4条解析
开通博客写题解
牛客用户098471297
发表于 2025-12-03 11:33:24
#include <bits/stdc++.h> using namespace std; void tui(){ int n;cin>>n; vector<int>arr(n+1); arr[0]=0;arr[1]=1; for(
展开全文
LH_Coffee
发表于 2026-02-02 11:14:17
#include <iostream> using namespace std; using ll=long long; ll fbnq(int n){ if(n<=2)return 1; return fbnq(n-1)+fbnq(n-2); } int main
展开全文
ccl_aurora
发表于 2026-01-07 20:30:01
#include <iostream> using namespace std; int fb(int n){ int arr[41]; arr[0]=0; arr[1]=1; for(int i=2;i<41;i++){ ar
展开全文
星夜c
发表于 2025-12-17 02:00:15
#include <iostream> using namespace std; int data(int n) { if (n == 1 || n == 2) { return 1; } else { return data(n - 1)
展开全文
查看本题
查看本题讨论
相关比赛
119623-机器人工作室第二周作业
进入比赛
119640-机器人工作室第二周作业
进入比赛
等你来战
查看全部
牛客挑战赛86
报名截止时间:2026-03-06 22:00
牛客周赛 Round 134
报名截止时间:2026-03-08 21:00
牛客练习赛149
报名截止时间:2026-03-13 21:30
【小羊肖恩】小羊杯 Round 3
报名截止时间:2026-03-15 18:00
扫描二维码,关注牛客
意见反馈
下载牛客APP,随时随地刷题