Run ID:141475
提交时间:2025-12-25 15:15:48
#include <iostream> //designed by hu 2025-10 using namespace std; int main(){ int k,a,b,c; cin >> k; a = 1; b = 1; if (k==1 || k==2) { cout<< 1; return 0; //结束程序 } for(int i=1;i<= k-2 ;i++) { c = a + b; a = b; b = c; } cout << c; return 0; }