Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7737 | 张育斌 | 桃子问题 | C++ | Accepted | 0 MS | 256 KB | 395 | 2025-05-17 15:01:52 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<bits/stdc++.h> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int taozi(int day){ if(day==10) return 1; return (taozi(day+1)+1)*2; } int main(){ cout<<taozi(1); return 0; }