Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102455 | 王思颜 | 桃子问题 | C++ | Accepted | 1 MS | 268 KB | 391 | 2024-12-21 16:48:39 |
#include<iostream> // cin\cout\endl #include<ctime> //scanf()\printf() #include<cstdlib> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main() { int num = 1; for (int i = 9; i >= 1; --i) { num = (num + 1) * 2; } cout << num << endl; return 0; }