Files
python/TangDou/LianXiTi50/17.cpp

22 lines
296 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int Peach() {
int n = 1;
for (int i = 1; i <= 9; i++)
n = (n + 1) * 2;
printf("%d\n", n);
return n;
}
int main() {
//10---1
//9---4
//8---10
//递推版本
Peach();
return 0;
}