1
0
Fork 0
advent-of-code/2020/05/part1.hs

10 lines
165 B
Haskell
Raw Permalink Normal View History

#!/usr/bin/env runghc
import Day5
main = interact solve
solve = show . maxSeatId . map (read :: String -> BoardingPass) . lines
maxSeatId = maximum . map seatId