Skip to content

Commit

Permalink
更新 dp.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiechui1994 committed Jun 23, 2024
1 parent de8cebe commit dbfb9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithm/dp/dp.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ dp[i][w] = max(dp[i-1][w - k*w[i]] + k*p[i]) 0 <= k <= +OO
||、
dp[i][w] = max(dp[i-1][w - w[i] + p[i], dp[i-1][w])
dp[i][w] = max(dp[i][w - w[i] + p[i], dp[i-1][w])
for i in [1..N]:
for w in [1..W]:
Expand Down

0 comments on commit dbfb9d2

Please sign in to comment.