为何看见许多天才般的大佬say:2的n次方*2-2就行 但这样有什么错?↓
#include<bits/stdc++.h> using namespace std; int main() { long long n; cin>>n; cout<<((1<<n)-1)*2; return 0; }