Bringing some days up to speed after a short break

This commit is contained in:
2024-12-09 11:27:22 -08:00
parent 9fac5539f0
commit c63736752b
4 changed files with 115 additions and 1 deletions

2
1/2.py
View File

@@ -18,7 +18,7 @@ if __name__ == '__main__':
right.append(r)
# how many times does each number apear in each list
right = counts(right)
score = 0
score = sum([0 if n in right else n * right[n] for n in left])
for n in left:
if n not in right: continue
score += n * right[n]