Copyright | (c) Eric Mertens 2020 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
https://adventofcode.com/2020/day/1
Find entries in an expense report that sum up to 2020 and return their product.
Documentation
Given a list of integer inputs, find the product of count
entries that sum up to 2020
.
>>>
solve [1721, 979, 366, 299, 675, 1456] 2
514579
| >>> solve [1721, 979, 366, 299, 675, 1456] 3 241861950