Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109617 | 陈治宸 | 14兔子问题 | C++ | Accepted | 1 MS | 264 KB | 365 | 2025-02-09 20:03:57 |
#include<iostream> using namespace std; int main(){ int i; int rbt1=1,rbt2=0,rbt3=0; int nowRbt1=0,nowRbt2=0,nowRbt3=0; for(i=1;i<=8;i++){ nowRbt1=rbt2+rbt3; nowRbt2=rbt1; nowRbt3=rbt3+rbt2; rbt1=nowRbt1; rbt2=nowRbt2; rbt3=nowRbt3; } cout<<nowRbt1<<" "<<nowRbt2<<" "<<nowRbt3<<endl; return 0; }