mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
26a72e347d
2100-2199
24 lines
428 B
C++
24 lines
428 B
C++
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int t,n,a,b;
|
|
while(scanf("%d",&t)!=EOF)
|
|
{
|
|
while(t--)
|
|
{
|
|
scanf("%d",&n);
|
|
if(n>=1&&n<=30)
|
|
{
|
|
a=1;
|
|
for(b=1;b<=n;b++)
|
|
{
|
|
a=a*2;
|
|
}
|
|
a=a-1;
|
|
printf("%d\n",a);
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
}
|