Skip to content

Commit

Permalink
[BOJ] 11726(#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
heerucan committed May 3, 2022
1 parent 3aff2bc commit e277b57
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions BOJ/11726.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
n = int(input())

dp = [0]*10001

dp[0] = 0
dp[1] = 1
dp[2] = 2

for i in range(3, n+1):
dp[i] = dp[i-1] + dp[i-2]

print(dp[n]%10007)

0 comments on commit e277b57

Please sign in to comment.