5 lines
163 B
Python
5 lines
163 B
Python
#!/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")))))
|
|
|