Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
58702 祝家懿 14兔子问题 C++ Accepted 3 MS 260 KB 218 2023-09-29 16:32:02

Tests(1/1):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ int y=1,x=0,c=0; int a,b,n; for(int t=1;t<=8;t++){ a=y; b=x; n=c; y=b+n; x=a; c=b+n; } cout<<y<<' '<<x<<' '<<c; return 0; }