about summary refs log tree commit diff
path: root/day14.k
diff options
context:
space:
mode:
Diffstat (limited to 'day14.k')
-rw-r--r--day14.k10
1 files changed, 10 insertions, 0 deletions
diff --git a/day14.k b/day14.k
new file mode 100644
index 0000000..995bcfb
--- /dev/null
+++ b/day14.k
@@ -0,0 +1,10 @@
+d:0:"day14";
+t:2503;
+
+ss:{1 _' (&y=y,x) _ y,x}; / split x at y
+l:ss[;" "]' d;
+
+r:+{t#((0$x@6)#0$x@3),(0$x@13)#0}'l; / incremental distance at second
+
+|/+/r
+|/+/{x=|/x}'+\r