#include <iostream>
using namespace std;
int main(){
int n;
while(cin>>n){
int ans = 1;
int day = n;
while(day>1){
ans = (ans+1)*2;
day--;
}
cout<<ans<<endl;
}
return 0;
}
代码#include &lt;iostream&gt;using namespace std;int main(){ int n; while(cin&gt;&gt;n){ int ans = 1; int day = n; while(day&gt;1){ ans = (ans+1)*2; day--; } cout&lt;&lt;ans&lt;&...