about summary refs log tree commit diff
path: root/day17.k5
blob: cbb6603ae8b47019b2aa7b2f000ce95e9170bce1 (plain) (blame)
1
2
3
4
5
6
7
/ works in oK
d:{x@<x}@.:'-1_0:"day17"
g:150
r:{$[g=t:+/x; ,x; (t<g)&(0<#y); ,/{[v]r[x,*v;1_v]}'(!#y)_\:y; ()]}
s:r[(); d]
#s
#&{x=&/x}@#:'s