标签:
2 4
4 22
#include <iostream> #include <cstdio> using namespace std; int main(){ int a[31]={0,1},i; for(i=2;i<31;++i){ a[i]=(a[i-1]+1)*2; } int k; while(cin>>k){ printf("%d\n",a[k]); } return 0; }
标签:
原文地址:http://blog.csdn.net/zp___waj/article/details/46381539