예제 #1
0
 public function __invoke()
 {
     $input = $this->loadInput("Day17/Puzzle1");
     $filler = new EggnogFiller(explode(PHP_EOL, $input));
     $this->write("# combinations which use minimum number of containers: " . count($filler->fillMinimumNumberOfContainers(150)));
 }
예제 #2
0
 public function __invoke()
 {
     $input = $this->loadInput("Day17/Puzzle1");
     $filler = new EggnogFiller(explode(PHP_EOL, $input));
     $this->write("# combinations: " . count($filler->fill(150)));
 }