Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: maxprogoji
Problemset: อนุกรม
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-05 11:34:02
#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
long long c1 = 1;
long long c2 = 0;
long long c3;
for(int i = 0; i < n; i++){
c3 = c1 + c2;
c1 = c2;
c2 = c3;
}
cout << c3;
}