- 【循环】猴子吃枣问题(jujube)
1
- 2024-3-3 15:29:41 @
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b=1;
for(int i=1;i<10;i++)
{
a=(b+1)*2;
b=a;
}
cout<<a<<endl;
return 0;
}
0 comments
No comments so far...
Information
- ID
- 219
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 8
- Tags
- # Submissions
- 112
- Accepted
- 30
- Uploaded By