Day 03
This commit is contained in:
4
day03/part1.min.py
Normal file
4
day03/part1.min.py
Normal 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")))))
|
||||
|
||||
Reference in New Issue
Block a user