[杭电_HDU] 2013

#include <iostream>
using namespace std;

int main()
{
    int n;
    while (cin >> n)
    {
        int i = 1;    //最终桃子数目
        while (--n)
        {
            i = (i + 1) * 2;

        }
        cout << i << endl;
    }
    return 0;
}

 

posted @ 2019-08-25 18:07  Startu  阅读(141)  评论(0编辑  收藏  举报