小猴吃桃的事

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int i,n,x=1;
	cin>>n;
	for(i=1;i<n;i++)
	{
		x=2*(x+1);
	}
	cout<<x<<endl;
	return 0;
}

  

猜你喜欢

转载自www.cnblogs.com/wbyzs/p/10015497.html