Untitled
unknown
plain_text
2 years ago
311 B
36
Indexable
#include <bits/stdc++.h>
using namespace std;
int main()
{
// Write your code here
int Y;
cin>>Y;
long long int nb_nodes = pow(2, Y-1);
long long int node_val = 1;
for(int i=3; i<=Y; i++){
node_val *= 2;
}
cout<<node_val*nb_nodes<<endl;
return 0;
}Editor is loading...