| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 94655 | 梁敖铭 | 桃子问题 | C++ | Accepted | 0 MS | 260 KB | 752 | 2024-10-26 09:35:42 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cstdlib> #include<ctime> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; /*void a(int x){ if(x>100){ return; } cout<<x++<<endl; a(x); } int main(){ int x=1; a(x); return 0; } void a(int x){ if(x>=18){ return; }x+=2; cout<<x<<endl; a(x); } int main(){ int x=8; a(x); return 0; }*/ void c(int b){ for(int i=9;i>0;i--){ b=2*(b+1); } cout<<b; } int main(){ int b=1; c(b); return 0; }