day 1 ivy solution

main
magical 2024-12-02 03:46:58 +00:00
parent f85cbb1539
commit a2143ba7ae
2 changed files with 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -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