Skip to content

Commit

Permalink
Merge pull request #219 from xxubin04/58-xxubin04
Browse files Browse the repository at this point in the history
58-xxubin04
  • Loading branch information
9kyo-hwang authored Sep 25, 2024
2 parents 302e01a + a0a9aaf commit 7027e3c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions xxubin04/DP/9095_1,2,3 ๋”ํ•˜๊ธฐ.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
input = open(0).readline

def dp(value):
if value == 1:
return(1)
elif value == 2:
return(2)
elif value == 3:
return(4)
else:
return dp(value-3)+dp(value-2)+dp(value-1)

for i in range(n := int(input())):
print(dp(int(input())))
3 changes: 2 additions & 1 deletion xxubin04/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@
| 54์ฐจ์‹œ | 2024.07.11 | Tree | <a href="https://www.acmicpc.net/problem/1991">[1991]ํŠธ๋ฆฌ ์ˆœํšŒ </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/203 |
| 55์ฐจ์‹œ | 2024.07.29 | ์ •๋ ฌ | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/42747?language=python3">[Programmers]H-Index </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/208 |
| 56์ฐจ์‹œ | 2024.08.05 | ๊ตฌํ˜„ | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/17677#">[2018 KAKAO BLIND]๋‰ด์Šค ํด๋Ÿฌ์Šคํ„ฐ๋ง </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/211 |
| 57์ฐจ์‹œ | 2024.08.08 | Hash | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/42888">[2019 KAKAO BLIND]์˜คํ”ˆ์ฑ„ํŒ…๋ฐฉ </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/215 |
| 57์ฐจ์‹œ | 2024.08.08 | Hash | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/42888">[2019 KAKAO BLIND]์˜คํ”ˆ์ฑ„ํŒ…๋ฐฉ </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/215 |
| 58์ฐจ์‹œ | 2024.09.04 | DP | <a href="hthttps://www.acmicpc.net/problem/9095">[9095]1,2,3 ๋”ํ•˜๊ธฐ </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/219 |

0 comments on commit 7027e3c

Please sign in to comment.