题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2042
#include <math.h>
#include <stdio.h>
int main(void)
{
int n, t;
scanf("%d", &t);
while(t-- && scanf("%d", &n))
printf("%.0f\n", pow(2, n) + 2);
return 0;
}
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2042
#include <math.h>
#include <stdio.h>
int main(void)
{
int n, t;
scanf("%d", &t);
while(t-- && scanf("%d", &n))
printf("%.0f\n", pow(2, n) + 2);
return 0;
}