Run ID:144012
提交时间:2026-01-18 14:54: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 A(int x,int y){ if(x==0){ return y+1; } else if(x>0 && y==0){ return A(x-1,1); } else if(x>0&&y>0){ return A(x-1,A(x, y-1)); } } int main(){ int m,n; cin>>m>>n; cout<<A(m,n); return 0; }