#include <stdio.h>
#include <stdlib.h>
int taozi(int n){
int count=0;
if(n==1){
count=1;
}
else {
count=(taozi(n-1)+1)*2;
}
return count;
}
int main()
{
int n;
while(scanf("%d",&n)!=EOF){
printf("%d\n",taozi(n));
}
return 0;
}
2013蟠桃记
最新推荐文章于 2023-10-10 15:36:56 发布