diff options
Diffstat (limited to 'day23.ijs')
-rw-r--r-- | day23.ijs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/day23.ijs b/day23.ijs new file mode 100644 index 0000000..0a58d46 --- /dev/null +++ b/day23.ijs @@ -0,0 +1,11 @@ +d =: 10 #.inv 158937462 + +step =: 3 : 0 +'c h t' =. ({. ; }.@(4&{.) ; 4&}.) y +'a b' =. t ({. ; }.)~ >: {. /: (|. (<:c) |. 1+i.9) i. t +a,h,b,c +) + +,":"0}.(]|.~I.@(1&=)) step^:100 d + +NB. part2 TBD |