Day 1 (part 2 bugfix)

This commit is contained in:
Sebastian Seedorf
2020-12-02 12:35:07 +01:00
parent f9de896ba3
commit c460fd9913

View File

@@ -28,10 +28,8 @@ for item in items:
prod(vals) prod(vals)
)) ))
exit() exit()
elif new[0] < 0 or new[1] < 0: elif new[0] > 0 and new[1] > 0:
# target value too low or to many sums if new not in tree:
pass
else:
tree[new] = item tree[new] = item
tmp_values.add(new) tmp_values.add(new)
values = tmp_values values = tmp_values