Skip to content

Commit

Permalink
2024-02-20 ๋™์ „1
Browse files Browse the repository at this point in the history
  • Loading branch information
fnzksxl committed Feb 20, 2024
1 parent b4ade6a commit c426898
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
18 changes: 18 additions & 0 deletions fnzksxl/DP/๋™์ „1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import sys

input = sys.stdin.readline

N, K = map(int, input().split())
coin = []
dp = [0 for _ in range(K+1)]
dp[0] = 1

for _ in range(N):
coin.append(int(input()))

for i in coin:
for j in range(i, K+1):
if j-i >= 0:
dp[j] += dp[j-i]

print(dp[K])
5 changes: 3 additions & 2 deletions fnzksxl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| 3์ฐจ์‹œ | 2024-01-24 | ๊ทธ๋ฆฌ๋”” | [์†ŒํŠธ](https://www.acmicpc.net/problem/1083) | [#15](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/15) |
| 4์ฐจ์‹œ | 2024-01-31 | ๊ทธ๋ฆฌ๋”” | [์š”๊ฒฉ ์‹œ์Šคํ…œ](https://school.programmers.co.kr/learn/courses/30/lessons/181188) | [#19](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/19) |
| 5์ฐจ์‹œ | 2024-02-06 | ๋‹ค์ต์ŠคํŠธ๋ผ | [์ตœ์†Œ๋น„์šฉ ๊ตฌํ•˜๊ธฐ 2](https://www.acmicpc.net/problem/11779) | [#21](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/21) |
| 6์ฐจ์‹œ | 2024-02-14 | DP | [๋“ฑ๊ตฃ๊ธธ](https://school.programmers.co.kr/learn/courses/30/lessons/42898) | [#28](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/28)
| 7์ฐจ์‹œ | 2024-02-18 | ๊ทธ๋ฆฌ๋”” | [๊ตฌ๋ช…๋ณดํŠธ](https://school.programmers.co.kr/learn/courses/30/lessons/42885) | [#30](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/30)
| 6์ฐจ์‹œ | 2024-02-14 | DP | [๋“ฑ๊ตฃ๊ธธ](https://school.programmers.co.kr/learn/courses/30/lessons/42898) | [#28](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/28) |
| 7์ฐจ์‹œ | 2024-02-18 | ๊ทธ๋ฆฌ๋”” | [๊ตฌ๋ช…๋ณดํŠธ](https://school.programmers.co.kr/learn/courses/30/lessons/42885) | [#30](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/30) |
| 8์ฐจ์‹œ | 2024-02-20 | DP | [๋™์ „1](https://www.acmicpc.net/problem/2293) | [#32](https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/32) |
---

0 comments on commit c426898

Please sign in to comment.