Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85342 王陈淼 斐波那契数列 C++ Accepted 1 MS 268 KB 191 2024-07-17 09:44:01

Tests(11/11):


Code:

#include <iostream> using namespace std; int main() { int a=1,b=1,temp,n; cin >> n; for(int i=3;i<=n;i++) { temp=a+b; a=b; b=temp; } cout << b; return 0; }