Day 07 (minified)
This commit is contained in:
2
day07/part1.min.py
Normal file
2
day07/part1.min.py
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env python3
|
||||
l=list(map(int,list(open("input.txt"))[0].split(',')));l.sort();print(sum(abs(x-l[((len(l)+1)//2)-1])for x in l))
|
||||
Reference in New Issue
Block a user