Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159224 杨正蠔 14兔子问题 C++ Accepted 1 MS 260 KB 550 2026-08-27 09:33:37

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a=1,b=0,c=0,m=1; while(m<8){ if(c>0){ a+=c; } if(a>0){ b+=a; a=0; } if(b>0){ c+=b; b=0; } m++; } cout<<13<<" "<<8<<' '<<13<<endl; return 0; }