摘要:
View Code1#include<iostream>2#include<cstdio>3usingnamespacestd;4intmain()5{6intn;7__int64arr[40];8while(scanf("%d",&n)!=EOF)9{10arr[n]=1;11for(inti=n-1;i>=1;i--)12arr[i]=2*arr[i+1]+2;13printf("%I64d\n",arr[1]);14}15system("pause");16return0;17 阅读全文