View Code of Problem 3869

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
const int maxn = 5e5+50;
const ll INF = 0xffffffff;
const int mod = 998244353;

ll ans;

int main()
{
    int n;
    while(cin>>n)
    {
        ans = 1;
        for(int i = 0;i<n;i++)
        {
            ans *= 2;
        }
        cout<<ans<<endl;
    }
}

Double click to view unformatted code.


Back to problem 3869