Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68471 李明择 14兔子问题 C++ Accepted 1 MS 260 KB 233 2024-03-23 14:45:23

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; }