We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62e19d0 commit ad245a4Copy full SHA for ad245a4
1 file changed
Python/soup-servings.py
@@ -55,8 +55,8 @@ def dp(a, b, lookup):
55
dp(a-1, b-3, lookup))
56
return lookup[a, b]
57
58
- if N >= 5000:
+ if N >= 4800:
59
return 1.0
60
lookup = {}
61
- N = (N-1)//25 + 1
+ N = (N+24)//25
62
return dp(N, N, lookup)
0 commit comments