Day 1 (part 2 bugfix)
This commit is contained in:
@@ -28,10 +28,8 @@ for item in items:
|
||||
prod(vals)
|
||||
))
|
||||
exit()
|
||||
elif new[0] < 0 or new[1] < 0:
|
||||
# target value too low or to many sums
|
||||
pass
|
||||
else:
|
||||
elif new[0] > 0 and new[1] > 0:
|
||||
if new not in tree:
|
||||
tree[new] = item
|
||||
tmp_values.add(new)
|
||||
values = tmp_values
|
||||
|
||||
Reference in New Issue
Block a user