这题都说了要注意数据范围
2024-12-02 20:20:42
发布于:北京
34阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
long long f(long long x){
if (x <= 10){
return x;
}
return f(x - 1) * f(x - 10);
}
int main(){
long long n;
cin >> n;
cout << f(n);
return 0;
}
这里空空如也
有帮助,赞一个