Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: PROb221
Problemset: อนุกรม
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-07 11:34:13
#include <iostream>
using namespace std;
int main() {
long long int x1=1,x2=1,temp;
long long int i;
long long int n;
cin>>n;
for(i=1;i<n;i++) {
temp=x1+x2;
x1=x2;
x2=temp;
}
cout << x1;
return 0;
}