Skip to content

Commit ad245a4

Browse files
authored
Update soup-servings.py
1 parent 62e19d0 commit ad245a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/soup-servings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def dp(a, b, lookup):
5555
dp(a-1, b-3, lookup))
5656
return lookup[a, b]
5757

58-
if N >= 5000:
58+
if N >= 4800:
5959
return 1.0
6060
lookup = {}
61-
N = (N-1)//25 + 1
61+
N = (N+24)//25
6262
return dp(N, N, lookup)

0 commit comments

Comments
 (0)