mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1448.cpp
This commit is contained in:
parent
79c75b2f4d
commit
880200c0d7
17
QUSTOJ/1448.cpp
Normal file
17
QUSTOJ/1448.cpp
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int all,rep,i,ans;
|
||||||
|
scanf("%d",&all);
|
||||||
|
for(;all>0;all--)
|
||||||
|
{
|
||||||
|
scanf("%d",&rep);
|
||||||
|
ans=3;
|
||||||
|
for(i=0;i<rep;i++)
|
||||||
|
{
|
||||||
|
ans=(ans-1)*2;
|
||||||
|
}
|
||||||
|
printf("%d\n",ans);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user