+/AoC
advent of code
git clone https://git.julia.blue/+/AoC
38c0746
master
1sheet = map (lambda x :map (int ,x .split ()),open ("input.txt" )) 2 3"Part 1:" ,sum (max (i )- min (i )for i in sheet ) 4 5from itertools import permutations 6 7"Part 2:" ,sum (sum (i [0 ]/ i [1 ]for i in permutations (j ,2 )if i [0 ]% i [1 ]== 0 )for j in sheet )