Submission
Status:
PPPPPTTTTT
Subtask/Task Score:
50/100
Score: 50
User: jamesz
Problemset: อนุกรม
Language: cpp
Time: 1.090 second
Submitted On: 2026-10-24 21:19:47
#include<iostream>
using namespace std;
typedef long long ll;
ll f(ll n){
if(n<=1) return 1;
return f(n-1) + f(n-2);
}
int main(){
ll n;
cin.tie(0); ios::sync_with_stdio(false);
cin>>n;
cout<<fixed<<f(n-1); return 0;
}