Run ID:144013

提交时间:2026-01-18 15:01:16

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int f(int x){ if(x==0 || x==1){ return x; } else{ return f(x-1)+f(x-2); } } int main(){ int n; cin>>n; cout<<f(n); return 0; }