HDU/2042/main.c
Saturneric 0525ffad24 Add.
2020-09-01 00:48:58 +08:00

16 lines
273 B
C

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