You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
296 B
22 lines
296 B
2 years ago
|
#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;
|
||
|
}
|