about summary refs log tree commit diff
path: root/day05.k
diff options
context:
space:
mode:
Diffstat (limited to 'day05.k')
-rw-r--r--day05.k6
1 files changed, 6 insertions, 0 deletions
diff --git a/day05.k b/day05.k
new file mode 100644
index 0000000..1ad195a
--- /dev/null
+++ b/day05.k
@@ -0,0 +1,6 @@
+/ not so easy because of overlapping matches
+/ (*r),&/r:#:'{x@&{1_x,1}(1_v,1)&v:~<':32=b|-b:-':x}/'{(*1:`day05)^`c$(x,x+32)}'"@"+!27
+/ (*r),&/r:#:'{x@&{1_x,1}(1_v,1)&v:~<':32=b|-b:-':x}/'(20#*1:`day05)^/:+`c$"@`"+\:!27
+r@0,*<r:#:'{x@&{1_x,1}(1_v,1)&v:~<':32=b|-b:-':x}/'(*1:`day05)^/:+`c$"@`"+\:!27
+/ 9686 5524
+