Run ID:143742
提交时间:2026-01-17 16:34:03
#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 raw(int x){ if(x==0){ return 0; } if(x==1){ return 1; } if(x==2){ return 2; } if(x>=3){ return raw(x-1)+raw(x-2); } } int main(){ int x; cin>>x; cout<<raw(x); return 0; }