aboutsummaryrefslogtreecommitdiff
path: root/day10.k
blob: 7ff29954cb3ddab1fdc58bd4db2dcc7263039fb4 (plain) (blame)
1
2
3
4
5
6
7
d:{.:'(x 10+!6; x 18+!6; x 36+!2; x 40+!2)}'1:`day10
n:*<{r:d[;0]+x*d[;2];(|/r)-(&/r)}'!20000
(30 80#" "){.[x;y-180 100;:;"#"]}/d[;1 0]+n*d[;3 2]  / BXJXJAEX
n  / 10605


/ " #"@+(in[;d[;0 1]+n*d[;2 3]])''80 30#+100 180+!80 30  / BXJXJAEX