adventofcode2024/day01/sol.ivy

10 lines
111 B
XML

) get "data.ivy"
# part 1
a = input[;1]
b = input[;2]
+/ abs (a[up a] - b[up b])
# part 2
+/ a * +/ a o.== b