#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; }
[杭电_HDU] 2013
猜你喜欢
转载自www.cnblogs.com/cjdty/p/11408711.html
今日推荐
周排行