Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68468 孙睿阳 14兔子问题 C++ Accepted 1 MS 264 KB 232 2024-03-23 14:43:12

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int yt=1,xt=0,ct=0; int y,x,c; for(int i=1;i<=8;i++){ y=yt; x=xt; c=ct; yt=x+c; xt=y; ct=c+x; } cout<<yt<<' '<<xt<<' '<<ct; return 0; }