Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: TonnamSora
Problemset: อนุกรม
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-02 18:12:03
#include <iostream>
using namespace std;
int main(){
long long int N;
cin >> N;
long long int a = 1, b = 0;
long long int x = 1;
for(int i = 1; i < N; i++){
x = a + b;
b = a;
a = x;
}
cout << x;
}