[2017-12-07] Samples

master
Elis Hirwing 2017-12-07 22:36:01 +01:00
parent 59869da756
commit 051e389130
Signed by: etu
GPG Key ID: D57EFA625C9A925F
2 changed files with 1104 additions and 0 deletions

1098
day7/input.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -119,3 +119,9 @@ function puzzle2(string $input) : int
// Calucalete correct value
return $errorNameOriginalValue - $diff;
}
echo 'First challange solution:'.PHP_EOL;
echo puzzle1(trim(file_get_contents(dirname(__FILE__).'/input.txt'))).PHP_EOL.PHP_EOL;
echo 'Second challange sample:'.PHP_EOL;
echo puzzle2(trim(file_get_contents(dirname(__FILE__).'/input.txt'))).PHP_EOL;