Create 1448.cpp

This commit is contained in:
KiritoTRw 2016-05-01 18:40:37 +08:00
parent 79c75b2f4d
commit 880200c0d7

17
QUSTOJ/1448.cpp Normal file
View File

@ -0,0 +1,17 @@
#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;
}