sln_2023_06
Copyright(c) Eric Mertens 2023
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

https://adventofcode.com/2023/day/6

This problem asks us to consider the time we should spend charging up a toy car to beat a target distance. The distance the car will travel is a quadratic equation. What we end up doing is finding the distance between the roots of the function.

  • - >>> :{ :main + "Time: 7 15 30 Distance: 9 40 200 " :} 288 71503
Synopsis

Documentation

main :: IO () Source #

>>> :main
281600
33875953

ways :: (Int, Int) -> Int Source #