Skip to content

Commit

Permalink
58-xxubin04
Browse files Browse the repository at this point in the history
  • Loading branch information
xxubin04 committed Sep 3, 2024
1 parent 498a7e5 commit 4e2386c
Show file tree
Hide file tree
Showing 2 changed files with 17 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())))
4 changes: 3 additions & 1 deletion xxubin04/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@
| 52์ฐจ์‹œ | 2024.07.05 | ๊ตฌํ˜„ | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/64065">[2019 ์นด์นด์˜ค ์ธํ„ด์‹ญ]ํŠœํ”Œ </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/198 |
| 53์ฐจ์‹œ | 2024.07.08 | DP | <a href="https://www.acmicpc.net/problem/2193">[2193]์ด์นœ์ˆ˜ </a> | https://github.com/AlgoLeadMe/AlgoLeadMe-3/pull/200 |
| 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 |
| 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 |
| 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 |
| 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 4e2386c

Please sign in to comment.