Day 1: 122
This commit is contained in:
parent
7231149a6c
commit
536dd4f89e
1 changed files with 3 additions and 0 deletions
3
d1golf.hs
Normal file
3
d1golf.hs
Normal file
|
@ -0,0 +1,3 @@
|
|||
t=tail
|
||||
d x=sum[1|y<-zipWith(<)x(t x),y]
|
||||
main=interact$show.((,).d<*>d.((zipWith3(((+).).(+))<*>t)<*>(t.t))).map read.lines
|
Loading…
Add table
Reference in a new issue