Day1 completed

This commit is contained in:
2024-12-01 14:15:11 +01:00
commit 47cab6a2c7
5 changed files with 48 additions and 0 deletions

10
day1/part2.py Normal file
View File

@@ -0,0 +1,10 @@
from common import parse, split
def main():
l1, l2 = split(parse('input'))
print(sum(map(lambda x: x * len(list(filter(lambda y: y == x, l2))), l1)))
if __name__ == '__main__':
main()