hdoj2013专题

蟠桃记【HDOJ2013】

#include<cstdio>#include<cmath>int f(int x){if (x==1) return 1;return (f(x-1)+1)*2;}int main(){int n;while(scanf("%d",&n)!=EOF){int result = f(n); printf("%d\n",result);}return 0;}