Submission

Status:

PPPPP-----

Subtask/Task Score:

50/100

Score: 50

User: YourLocalZ

Problemset: อนุกรม

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-12 16:11:31

#include <iostream>
using namespace std;

int main()
{
    int x,a=1,b=1;
    cin >> x;
    for(int i=2;i<x;i++)
    {
        int t = b;
        b = a+b;
        a = t;
    }
    cout << b;

}