Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Buslnwzuz
Problemset: อนุกรม
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-14 08:23:31
#include <bits/stdc++.h>
using namespace std;
int main(){
vector<long long> febo;
long long total = 0;
febo.push_back(1);
febo.push_back(1);
for(long long i=1;i<90;i++){
total = febo[i]+febo[i-1];
febo.push_back(total);
}
int n;
cin >> n;
cout << febo[n-1];
return 0;
}