本文主要是介绍hdu-2042-不容易系列之二,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
#include<stdio.h>int main()
{
int s;
scanf("%d",&s);
while(s--)
{
int n,i,t=4;
scanf("%d",&n);
for(i=1;i<n;i++)
t=(t-1)*2;
printf("%d\n",t);
}
return 0;
}
这篇关于hdu-2042-不容易系列之二的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!