Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: jackpapho
Problemset: อนุกรม
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-30 20:34:03
#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
long long a = 1,b=1;
for (int i = 1;i < n;i++){
long long temp = a;
a = a+b;
b = temp;
}
cout << b;
}