Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78347 冯诚阳 C语言6.6 C++ Accepted 0 MS 264 KB 229 2024-06-18 19:20:46

Tests(1/1):


Code:

#include<iostream> #include<cstring> using namespace std; int main() { int f1=1,f2=1,f=1; cout<<1<<" "<<1<<" "; for (int i=3;i<=40;i++){ f=f1+f2; cout<<f<<" "; f1=f2; f2=f; } cout<<endl; return 0; }