SOLUTION INFO
C++ · main.cpp
#include<bits/stdc++.h>
using namespace std;
long long DP[99];
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
DP[1] = 1;
for(int i=2;i<=90;i++)DP[i] = DP[i-1] + DP[i-2];
int N; cin >> N;
cout << DP[N];
}
SOLUTION DESCRIPTION
풀이 설명
등록된 풀이 설명이 없습니다.
DISCUSSION
댓글
GitHub 로그인 후 작성할 수 있으며 모든 댓글은 이 저장소의 Discussions에 보관됩니다.