题解
2024-09-04 22:01:30
发布于:江苏
0阅读
0回复
0点赞
#include<bits/stdc++.h>
#define ll long long //防伪标识
#define MAXN 1005
#define maxn 10005
#define MAXM 10000
#define maxm 1000005
#define Y1 "YES"
#define N1 "NO"
#define Y2 "yes"
#define N2 "no"
#define Y3 "Yes"
#define N3 "No"
using namespace std;
int akm(int m,int n){
if(m == 0) return n+1;
else if(m>0&&n == 0) return akm(m-1,1);
else if(m>0&&n>0) return akm(m-1,akm(m,n-1));
}
int main(){
int m,n;
cin>>m>>n;
cout<<akm(m,n);
return 0;
}
这里空空如也
有帮助,赞一个