Run ID:133880

提交时间:2025-10-23 15:21:13

#include<bits/stdc++.h> using namespace std; int main() { long long a[51],s=0; int n; a[1]=1; for(int i=2;i<=50;i++){ a[i]=2*a[i-1]; } cin>>n; for(int i=1;i<=n;i++){ s+=a[i]; } cout<<s; return 0; }