diff options
-rw-r--r-- | 3.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,4 +36,4 @@ for ly, l in enumerate(inp): p1 += value print(p1) -print(sum(reduce(mul, nums) for nums in p2_gears.values() if len(nums) > 1)) +print(sum(reduce(mul, nums) for nums in p2_gears.values() if len(nums) == 2)) |