Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129610 黄俊然 14兔子问题 C++ Accepted 0 MS 264 KB 501 2025-08-29 19:35:12

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 ct0=0,xt0=0,yt0=1,ct=0,xt=0,yt=1; for(int i=1;i<=8;i++){ yt=ct0+xt0; xt=yt0; ct=ct0+xt0; ct0=ct; xt0=xt; yt0=yt; } cout<<yt<<" "<<xt<<" "<<ct; return 0; }