Day 1: 125
This commit is contained in:
parent
2c0fae1d85
commit
566465da30
1 changed files with 1 additions and 1 deletions
2
day1.hs
2
day1.hs
|
@ -1,3 +1,3 @@
|
|||
import Data.List
|
||||
w%(h:t)|w>""=(read w+h):t|let=0:h:t
|
||||
w%(h:t)|w>""=read w+h:t|let=0:h:t
|
||||
main=interact$show.((,).head<*>sum.take 3).reverse.sort.foldr(%)[0].lines
|
||||
|
|
Loading…
Add table
Reference in a new issue