#include <bits/stdc++.h> using namespace std; int f(int n) { if(n==1||n==2) return 1; else return f(n-1)+f(n-2); } int main() { int a; cin>>a; cout<<f(a)<<endl; return 0; }
标签:std,return,int,5.17,打卡,main From: https://www.cnblogs.com/Sunyiran/p/17407741.html