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