标签:
#include<cstdio>
using namespace std;
typedef long long ll;
int main(){
int n;ll ans = 0,cur = 1;
scanf("%d",&n);
while(n--){
cur *= 2;
ans += cur;
}
printf("%I64d\n",ans);
}
[2016-04-14][codeforces][630][C][ Lucky Numbers]
标签:
原文地址:http://www.cnblogs.com/qhy285571052/p/c7802d88a3fd2aa738794645aaff4be8.html