링크 : https://school.programmers.co.kr/learn/courses/30/lessons/12914
#include <string>
#include <vector>
using namespace std;
long long dp[20001];
long long solution(int n) {
dp[0] = 0;
dp[1] = 1;
dp[2] = 2;
for(int i = 3; i <= n; i++){
dp[i] = (dp[i-1] + dp[i-2]) % 1234567;
}
return dp[n];
}