Submission

Status:

---------

Subtask/Task Score:

0/100

Score: 0

User: Angpao

Problemset: บวกเลขฐาน

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-08 14:55:18

#include <bits/stdc++.h>
using namespace std;
int n;
int Fi(int x)
{
   if(x==1||x==2){
        return 1;
   }

   return Fi(x-1)+Fi(x-2);
}

int main()
{
    cin>>n;
    cout<<Fi(n);
}