Browse Source

[2017-12-07] Samples

master
Elis Hirwing 4 years ago
parent
commit
051e389130
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 1098
      day7/input.txt
  2. 6
      day7/main.php

1098
day7/input.txt

File diff suppressed because it is too large

6
day7/main.php

@ -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;

Loading…
Cancel
Save