提交时间:2025-02-21 22:00:15

运行 ID: 61076

#include<bits/stdc++.h> using namespace std; int fib(int n){ if(n==1) return 0; else if(n==2) return 1; else return fib(n-1)+fib(n-2); } int main(){ int x; cin>>x; cout<<fib(x); }//zhangsicun i