Submission
Status:
PPPPP-----
Score: 50
User: Winzzwz
Problemset: อนุกรม
Language: cpp
Time: 0.002 second
Submitted On: 2025-03-05 21:01:36
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int n,t[110];
int main() {
cin.tie(0)->sync_with_stdio(0);
t[1] = 1; t[2] = 1;
cin >> n;
for (int i = 3; i <= n; i++) {
t[i] = t[i-1] + t[i-2];
}
cout << t[n];
return 0;
}