day1: 137

This commit is contained in:
Christoph Stahl 2022-12-01 12:55:06 +01:00
commit e84d53fab4
3 changed files with 2258 additions and 0 deletions

2
day1.hs Normal file
View file

@ -0,0 +1,2 @@
import Data.List
main=interact$show.(\s->(head s,sum$take 3$s)).reverse.sort.map(sum.map read.filter(/="")).(groupBy(\b->(/=""))).lines

2242
day1long Normal file

File diff suppressed because it is too large Load diff

14
day1short Normal file
View file

@ -0,0 +1,14 @@
1000
2000
3000
4000
5000
6000
7000
8000
9000
10000