Submission
Status:
PPPPPTTTTT
Subtask/Task Score:
50/100
Score: 50
User: sulinx
Problemset: อนุกรม
Language: cpp
Time: 1.094 second
Submitted On: 2025-10-14 20:54:24
#include <bits/stdc++.h>
using namespace std;
int fib(int x){
if(x==0||x==1){
return x;
}
return fib(x-1) + fib(x-2);
}
int main(){
int n;
cin >> n;
cout << fib(n);
}