Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72616 杨一诺 14兔子问题 C++ Wrong Answer 1 MS 260 KB 261 2024-05-12 09:13:43

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int o_y=1,o_x=0,o_c=0,i; int n_y=0,n_x=0,n_c=0; int main(){ for(i=1;i<=8;i++){ n_x=o_y; n_c=o_c+n_x; n_y=n_c; o_y=n_y; o_x=n_x; o_c=n_c; } cout<<n_y<<" "<<n_x<<' '<<n_c; return 0; }


Run Info:

------Input------
0
------Answer-----
13 8 13
------Your output-----
128 64 128