about summary refs log tree commit diff
path: root/day05.k
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-12-06 15:57:53 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-12-06 15:57:53 +0100
commitb3d780a4dba7edc1cbd151528d36761e936c4ce8 (patch)
tree381e18af444c69660a918c25f5223cc6508363c0 /day05.k
parent9b9dc4d2fc08c07435d61e34a36b8ce037168a5c (diff)
downloadadventofcode2018-b3d780a4dba7edc1cbd151528d36761e936c4ce8.tar.gz
adventofcode2018-b3d780a4dba7edc1cbd151528d36761e936c4ce8.tar.xz
adventofcode2018-b3d780a4dba7edc1cbd151528d36761e936c4ce8.zip
day05
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
+