Run ID:90508
提交时间:2024-09-15 13:51:01
#include <bits/stdc++.h> using namespace std; int main(){ int a=1,b=1; int k; cin>>k; if(k<=2){ cout<<1; } else{ int temp; for(int i=3;i<=K;i++){ temp = a+b; a=b; b=temp; } cout>>temp; } return 0; }