๋ฌธ์
https://school.programmers.co.kr/learn/courses/30/lessons/12945
ํ์ด
# ํ๋ก๊ทธ๋๋จธ์ค 2๋จ๊ณ - ํผ๋ณด๋์น ์
def solution(n):
answer = 0
d = [0] * 100001
d[0] = 0
d[1] = 1
for i in range(2, n+1):
d[i] = d[i-1] + d[i-2]
return d[n]%1234567