day 1 ivy solution
parent
f85cbb1539
commit
a2143ba7ae
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,9 @@
|
|||
) read "data.ivy"
|
||||
) get "data.ivy"
|
||||
|
||||
a
|
||||
# part 1
|
||||
a = input[;1]
|
||||
b = input[;2]
|
||||
+/ abs (a[up a] - b[up b])
|
||||
|
||||
# part 2
|
||||
+/ a * +/ a o.== b
|
||||
|
|
Loading…
Reference in New Issue