竞赛
考级
整点高级的 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
末影珍珠
法兰西玫瑰
已经考了不知道多少次了 打表!
树上结了西瓜
逍遥骇好=&
#include <iostream> using namespace std; int dg(int n) { if(n1) return 1; if(n2) return 1; return dg(n-1)+dg(n-2); } int main(){ int n; cin>>n; cout<<dg(n)<<endl; return 0; }
Voldemort
#include <iostream> using namespace std; long long f(int x) { if(x == 1 || x == 2) return 1; else return f(x-1)+f(x-2); } int main(){ int n; cin >> n; cout << f(n); }
你
#include <iostream> using namespace std; int main(){ int a,cnt; cin>>a; int b[1000]={1,1,2,3,5,8,13,21,34,55}; cout<<b[a-1]; return 0; }
WA战神姜禹卓
一枚button
6.