Run ID:141609

提交时间:2025-12-27 15:29:36

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