#include <iostream>
using namespace std;
int main()
{
int n, i = 1;
while (cin >> n)
{
if (n <= 1 || n >= 30)
continue;
int sum = 1;
for (i = 1; i < n; i++)
sum = (sum + 1) * 2;
cout << sum << endl;
i = 1;
sum = 1;
}
return 0;
}
HDU ACM 11 2013 蟠桃记
最新推荐文章于 2020-11-07 20:07:21 发布