sln_2015_15
Copyright(c) Eric Mertens 2021
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

https://adventofcode.com/2015/day/15

We have a list of ingredients with different properties and a scoring function. We have to combine those ingredients to maximize the score.

Documentation

main :: IO () Source #

score Source #

Arguments

:: [Integer]

properties list, calories are last

-> Integer

score for recipe

computeStats Source #

Arguments

:: [[Integer]]

properties for all ingredients

-> [Integer]

divisions

-> [Integer]

cumulative properties

divisions Source #

Arguments

:: Integer

number of divisions

-> Integer

amount to divide

-> [[Integer]]

all possible divisions