提交时间:2023-01-08 14:29:26
运行 ID: 3477
#include<bits/stdc++.h> using namespace std; int po(int a,int b){ long long ans=1; while(b){ if(b%2)ans*=a; a*=a; b/=2; } return ans; } int main(){ int n; cin>>n; cout<<po(2,n)+1; return 0; } /* #include<cstdio> freopen("文件名.in","r",stdin); freopen("文件名.out","w",stdout); */