1
0
Fork 0

2015 day 8 part 1

This commit is contained in:
Lucidiot 2018-12-01 13:04:19 +01:00
parent 968a9786a8
commit 8d52f62d14
No known key found for this signature in database
GPG Key ID: AE3F7205692FA205
1 changed files with 6 additions and 0 deletions

6
2015/8/part1.py Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3
import fileinput
len1, len2 = map(sum, zip(*map(lambda x: (len(x), len(eval(x))), map(str.strip, fileinput.input()))))
print(len1 - len2)