OJ-Problems-Source/QUSTOJ/1448.cpp
2016-05-01 18:40:37 +08:00

18 lines
270 B
C++

#include <stdio.h>
int main()
{
int all,rep,i,ans;
scanf("%d",&all);
for(;all>0;all--)
{
scanf("%d",&rep);
ans=3;
for(i=0;i<rep;i++)
{
ans=(ans-1)*2;
}
printf("%d\n",ans);
}
return 0;
}