Run ID:102225
提交时间:2024-12-21 14:06:31
#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()\fabs() #include<ctime> #include<cstdlib> using namespace std; int w(int a,int b){ if(a==0) return b+=1; else if(a>0&&b==0) return w(a-1,1); else return w(a-1,w(a,b-1)); } int main(){ int a,b; cin>>a>>b; cout<<w(a,b)<<endl; return 0; }