This commit is contained in:
Sebastian Seedorf
2022-12-05 09:30:05 +01:00
parent b8fcf3a685
commit 9da1101818
4 changed files with 329 additions and 0 deletions

4
day03/part1.min.py Normal file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env python3
print(sum(map(lambda o:o-96if o>96else o-38,(ord(set(l[:len(l)//2]).intersection(set(l[len(l)//2:])).pop())for l in open("input.txt")))))