Submission
Status:
PPPPP-----
Subtask/Task Score:
50/100
Score: 50
User: mameeewin
Problemset: อนุกรม
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-08 20:55:06
#include <iostream>
using namespace std;
int main(){
int n, a=1, b=1, c=1; cin >> n;
for (int i=0; i<n-2; i++){
c=a+b;
a=b;
b=c;
}
cout << c;
}