fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin>>n;
  7. unsigned long long t = 1;
  8. for(int i = 0;i < n;i++)t=2 * (t + 1);
  9. cout<<t;
  10. }
Success #stdin #stdout 0s 15232KB
stdin
1
stdout
4