全红求助
查看原帖
全红求助
948249
tkm2013楼主2024/8/20 13:13
#include<bits/stdc++.h>
using namespace std;
int ff(int z){
    return z==0 ? 0 : ff(z-1)+1;
}
int f(int x){
    if(x==1){
        return 1;
    }
    return ff(x)*f(x-1);
}
int main(){
	int n;
	cin>>n;
	cout<<n*2;
	return 0;
}

可以过样例

2024/8/20 13:13
加载中...