Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
109612 陈治宸 14兔子问题 C++ Wrong Answer 0 MS 260 KB 296 2025-02-09 19:52:01

Tests(0/1):


Code:

#include<iostream> using namespace std; int main(){ int i; int a=1,b=2,c=3; int nowA=0,nowB=0,nowC=0; for(i=1;i<=8;i++){ nowA=b+c; nowB=a; nowC=c+b; a=nowA; b=nowB; c=nowC; } cout<<nowA<<" "<<nowB<<" "<<nowC<<endl; return 0; }


Run Info:

------Input------
0
------Answer-----
13 8 13
------Your output-----
118 73 118