Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163865 吴尔玉 斐波那契数列 C++ Accepted 1 MS 272 KB 170 2026-10-31 11:33:36

Tests(11/11):


Code:

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