import sys
input =sys.stdin.readline
n = int(input())
dp = [0,1,1]
for i in range(3,91):
result = dp[i-1]+dp[i-2]
dp.append(result)
print(dp[n])
'문제풀이 > 백준(Boj) 문제풀이' 카테고리의 다른 글
[백준][자료구조/힙] 2638. 치즈(파이썬/Python) (0) | 2022.01.28 |
---|---|
[백준][BFS] 1389. 케빈 베이컨의 6단계 법칙 (파이썬/Python) (0) | 2022.01.27 |
[백준][자료구조/힙] 1202. 보석도둑(파이썬/Python) (0) | 2022.01.25 |
[백준][자료구조/힙] 1766.문제집 (파이썬/Python) (0) | 2022.01.24 |
[백준][DFS/DP] 1707. 이분 그래프 (파이썬/Python) (0) | 2022.01.20 |