竞赛
考级
很复杂:
奈布·萨贝达(求关注)
#include<bits/stdc++.h> using namespace std; long long f(int n){ if(n<=3) return 1; else return f(n-1)+2*f(n-3); } int main(){ int n; cin>>n; cout<<f(n); }
ACGO
#include<bits/stdc++.h> using namespace std; long long f(int n) { if(n<=3) return 1; else return f(n-1)+2*f(n-3); } int main() { int n; cin>>n; cout<<f(n); return 0; }
WA君
无敌的鳖佬仔给老爷爷猜猜被