From abfd94b8039d73d3647068a934e2fe7836c4dc33 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Wed, 6 Dec 2017 08:00:55 +0100 Subject: [PATCH] [2017-12-06] Samples --- day6/input.txt | 1 + day6/main.php | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 day6/input.txt diff --git a/day6/input.txt b/day6/input.txt new file mode 100644 index 0000000..adacc33 --- /dev/null +++ b/day6/input.txt @@ -0,0 +1 @@ +0 5 10 0 11 14 13 4 11 8 8 7 1 4 12 11 diff --git a/day6/main.php b/day6/main.php index 5b8b83b..69bea7b 100644 --- a/day6/main.php +++ b/day6/main.php @@ -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;