|
|
|
@ -91,3 +91,9 @@ function puzzle2(string $input) : int
|
|
|
|
|
|
|
|
|
|
return $sum; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo 'First challange solution:'.PHP_EOL; |
|
|
|
|
echo puzzle1(trim(file_get_contents(dirname(__FILE__).'/input.txt'))).PHP_EOL; |
|
|
|
|
|
|
|
|
|
echo 'Second challange solution:'.PHP_EOL; |
|
|
|
|
echo puzzle2(trim(file_get_contents(dirname(__FILE__).'/input.txt'))).PHP_EOL; |
|
|
|
|