View Code of Problem 73

#include<cstdio>
#include<iostream>
using namespace std;
int a[20];
int main()
{
    int n;
    cin>>n;
    int ans=1;
    for(int i=1;i<n;i++)
        ans=(ans+1)*2;
    cout<<ans<<endl;
    return 0;
}

Double click to view unformatted code.


Back to problem 73