#include<bits/stdc++.h> using namespace std; int a(int i){ if(i1||i2||i3||i4) return i; return a(i-1)+a(i-3); } int main(){ int i; cin>>i; cout<<a(i); return 0; }

0 comments

No comments so far...