Day 1: 125

This commit is contained in:
Christoph Stahl 2022-12-01 20:32:11 +01:00
parent 2c0fae1d85
commit 566465da30

View file

@ -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