Submission
Status:
PPPPPTTTTT
Score: 50
User: exoworldgd
Problemset: อนุกรม
Language: cpp
Time: 1.094 second
Submitted On: 2024-12-14 17:47:25
#include <iostream>
using namespace std;
int fi(int n) {
if (n == 1) return 0;
else if (n == 2) return 1;
else return fi(n-1) +fi(n-2);
}
int main(void) {
int n;
cin >> n;
cout << fi(n+1);
}