Advent of Code - 2021 - 1
Haskell
import Input
= 0
count [_] :ls@(y:_))
count (x| y > x = 1 + count ls
| otherwise = count ls
= 0
count3 [_, _, _] :ls@(y:z:w:_))
count3 (x| b > a = 1 + count3 ls
| otherwise = count3 ls
where
= x + y + z
a = y + z + w
b
= print $ count3 input main