Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
107342 | 陈铎文 | 14兔子问题 | C++ | Wrong Answer | 1 MS | 264 KB | 391 | 2025-01-17 15:26:05 |
#include<iostream> using namespace std; int main(){ int you=1; int xiao=0,zhong=0,da=0; for(int i=1;i<=8;i++){ if(i==1){ xiao=1; you=0; zhong=0; } else{ zhong+=xiao; xiao=you; you=zhong; da=xiao+zhong+you; } } cout<<da; return 0; }
------Input------
0
------Answer-----
13 8 13
------Your output-----
34