Skip to content

Create Problem Statement2 solution#5

Open
Ishi2702 wants to merge 2 commits intohack2skill:mainfrom
Ishi2702:patch-1
Open

Create Problem Statement2 solution#5
Ishi2702 wants to merge 2 commits intohack2skill:mainfrom
Ishi2702:patch-1

Conversation

@Ishi2702
Copy link

Solution2

@vansh2365
Copy link

#include
using namespace std;
int Count(int n){
int a=1,e=1,i=1,o=1,u=1;
while(--n){
u=u;
o +=u;
i+=o;
e+=i;
a+=e;
}
return a+e+i+o+u;
}
int main(){
int n;
cin>>n;
int sol=Count(n);
cout<<sol<<endl;
return 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants