diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-12-03 13:11:02 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-12-03 13:11:02 +0000 |
commit | 79930810aad2e15ad1d1e3465e80d72bdd098866 (patch) | |
tree | 352a8f189e984c3ba7d2a97989aa68ab25a18353 | |
parent | 65abc2babd3ef8dffa93ec6e764ab99ac432bca2 (diff) | |
download | aoc2023-79930810aad2e15ad1d1e3465e80d72bdd098866.tar.gz aoc2023-79930810aad2e15ad1d1e3465e80d72bdd098866.tar.xz aoc2023-79930810aad2e15ad1d1e3465e80d72bdd098866.zip |
"exactly two part numbers"
-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)) |