about summary refs log tree commit diff
path: root/day05.k
blob: 1ad195ab68c7eee6c3b8007a3cf83a0130262560 (plain) (blame)
1
2
3
4
5
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