OJ-Problems-Source/HDOJ/2042.cpp
2017-03-07 16:41:53 +08:00

38 lines
585 B
C++

#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
/// This Contest and Compile does not support C++11.
//#include <thread>
//#include <mutex>
//#include <condition_variable>
//#include <functional>
using namespace std;
int main()
{
int n;
cin>>n;
for(int i=0;i<n;i++)
{
int a;
cin>>a;
int cc=3;
while(a--)
{
cc=(cc-1)*2;
}
cout<<cc<<endl;
}
return 0;
}