Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85340 勾好 斐波那契数列 C++ Accepted 1 MS 268 KB 193 2024-07-17 09:30:35

Tests(11/11):


Code:

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