Run ID:117151

提交时间:2025-04-13 19:20:42

#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 a(int x,int y){ if(x==0){ return y+1; } else if(y==0){ return a(x-1,1); } else{ return a(x-1,a(x,y-1)); } } int main(){ int y,x; cin>>y>>x; cout<<a(y,x)<<endl; return 0; }