mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
18 lines
270 B
C++
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;
|
|
}
|