Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
|
|
@ -1,5 +1,5 @@
|
|||
def total_value(items, max_weight):
|
||||
return sum([x[2] for x in items]) if sum([x[1] for x in items]) < max_weight else 0
|
||||
return sum([x[2] for x in items]) if sum([x[1] for x in items]) <= max_weight else 0
|
||||
|
||||
cache = {}
|
||||
def solve(items, max_weight):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue