Day 6: 125
This commit is contained in:
parent
6ea9780d81
commit
1f5b481b6a
1 changed files with 3 additions and 0 deletions
3
d6golf.hs
Normal file
3
d6golf.hs
Normal file
|
@ -0,0 +1,3 @@
|
|||
j=(1<$[0..8])<>zipWith(+)j(drop 2 j)
|
||||
d n=sum.map(\i->j!!((8-i)+n))
|
||||
main=interact$show.((,).d 256<*>d 80).read.('[':).(++"]")
|
Loading…
Add table
Reference in a new issue