Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122390 鲁博睿 斐波那契数列 C++ Accepted 1 MS 272 KB 188 2025-06-15 17:40:49

Tests(11/11):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int a,b=1,c=1,d=1; cin>>a; for(int i=3;i<=a;i++){ d=b+c; b=c; c=d; } cout<<d<<endl; return 0; }