Day 1: 129

This commit is contained in:
Christoph Stahl 2022-12-01 19:52:34 +01:00
parent 2ff7e4eb55
commit 8c0b441410

View file

@ -1,2 +1,3 @@
import Data.List
main=interact$show.((,).head<*>(sum.take 3)).reverse.sort.map(sum.map read.filter(>"")).(groupBy(\b->(>""))).lines
w%(h:t)|w>""=(read w+h):t|let=0:h:t
main=interact$show.((,).head<*>(sum.take 3)).reverse.sort.foldr(%)[0].lines