暴力题解
2026-08-03 14:44:39
发布于:贵州
5阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int f5(int x){
if(x<=2) return 1;
int cnt=0;//统计方法总数
int jj=x-1;
if(jj>=0){cnt+=f5(jj);
}else cnt+=1;
int jj2=x-3;
if(jj2>=0){
cnt+=f5(jj2);
}else cnt++;
return cnt;
}//有点暴力只是一 一统计
这里空空如也







有帮助,赞一个