about summary refs log tree commit diff
path: root/day01.k
diff options
context:
space:
mode:
Diffstat (limited to 'day01.k')
-rw-r--r--day01.k10
1 files changed, 10 insertions, 0 deletions
diff --git a/day01.k b/day01.k
new file mode 100644
index 0000000..30ba09f
--- /dev/null
+++ b/day01.k
@@ -0,0 +1,10 @@
+d:" "\(*0:"day01")^","
+
+t: (1 0;0 1;-1 0;0 -1)@4!+\-1+2*"R"=d[;0]
+l: "i"$1_'d
++/{%x*x}+/t*l			/ 146
+
+fd:{x@*&{1<#x}'.=x}
++/{%x*x}fd@+\t@&l		/ 131
+
+\\