Submission

Status:

PPPPP-----

Subtask/Task Score:

50/100

Score: 50

User: Buslnwzuz

Problemset: อนุกรม

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-14 08:20:03

#include <bits/stdc++.h>
using namespace std;

int main(){
    vector<int> febo;
    int total = 1;
    febo.push_back(1);
    febo.push_back(1);
    for(int i=1;i<100;i++){
        total = febo[i]+febo[i-1];
        febo.push_back(total);
        }
    int n;
    cin >> n;
    cout << febo[n-1];
    return 0;
}