大佬捞捞
查看原帖
大佬捞捞
1390546
Zch13656743046楼主2025/1/12 21:43
#include<bits/stdc++.h>
using namespace std;
int n;
int work(int x){
	if(x==1) return 1;
	else{
		return work(x-2)*2+work(x-3);
	}
}
int main(){
	cin>>n;
	cout<<work(n);
} 
2025/1/12 21:43
加载中...