Skip to content

Commit

Permalink
Merge pull request #16 from AlgoLeadMe/4-suhyun113
Browse files Browse the repository at this point in the history
4 suhyun113
  • Loading branch information
suhyun113 authored May 6, 2024
2 parents 10a3af0 + 4b6cb2d commit edca736
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions suhyun113/DP/4-suhyun113.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
memo = [0, 1]

n = int(input())
def fibo(n):
if n >= 2 and n >= len(memo):
memo.append(fibo(n-1)+fibo(n-2))
return memo[n]

print(fibo(n))
3 changes: 2 additions & 1 deletion suhyun113/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
|:----:|:---------:|:----:|:-----:|:----:|
| 1์ฐจ์‹œ | 2024.03.25 | ๊ทธ๋ฆฌ๋”” | [์ฒด์œก๋ณต](https://school.programmers.co.kr/learn/courses/30/lessons/42862) | [#2](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/2) |
| 2์ฐจ์‹œ | 2024.03.29 | ์ˆ˜ํ•™ | [์†Œ์ˆ˜ & ํŒฐ๋ฆฐ๋“œ๋กฌ](https://www.acmicpc.net/problem/1747) | [#9](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/9) |
| 3์ฐจ์‹œ | 2024.04.02 | ๊ทธ๋ฆฌ๋”” | [๊ฑฐ์Šค๋ฆ„๋ˆ](https://www.acmicpc.net/problem/14916) | [#12](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/12) |
| 3์ฐจ์‹œ | 2024.04.02 | ๊ทธ๋ฆฌ๋”” | [๊ฑฐ์Šค๋ฆ„๋ˆ](https://www.acmicpc.net/problem/14916) | [#12](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/12) |
| 4์ฐจ์‹œ | 2024.04.06 | DP | [ํ”ผ๋ณด๋‚˜์น˜ ์ˆ˜ 5](https://www.acmicpc.net/problem/10870) | [#16](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/16) |

0 comments on commit edca736

Please sign in to comment.