about summary refs log tree commit diff
path: root/day06.k
diff options
context:
space:
mode:
Diffstat (limited to 'day06.k')
-rw-r--r--day06.k5
1 files changed, 5 insertions, 0 deletions
diff --git a/day06.k b/day06.k
new file mode 100644
index 0000000..eebb011
--- /dev/null
+++ b/day06.k
@@ -0,0 +1,5 @@
+x[1]-0,*x:*{x@<x[;1]}(1<#:)#.=5000{x+(+/r*~^r:(0N;#x)#((1+m)#0),x[m]#1)-x*(m:*>x)=(!#x)}\.*0:`day06   / 4074 2793
+
+x[1]-0,*x:*a@<(a:.=5000{x+(+/r*~^r:(0N;#x)#((1+m;x@m)@)#!2)-x*(m:*>x)=!#x}\.*0:`day06)[;1]
+
+\\