标签:des style blog io color sp 数据 div on
1 #include <stdio.h> 2 #include <math.h> 3 4 int main(){ 5 int T; 6 int number; 7 double result; 8 double temp; 9 10 scanf("%d",&T); 11 12 while(T--){ 13 scanf("%d",&number); 14 temp=pow(2.0,(number-1)); 15 16 result=(temp+(temp/2*(number-1))); 17 18 printf("%.0lf\n",result); 19 } 20 return 0; 21 }
标签:des style blog io color sp 数据 div on
原文地址:http://www.cnblogs.com/zqxLonely/p/4054949.html