2024-11-23 23:22:26 -05:00
|
|
|
<?php
|
|
|
|
|
|
2024-11-23 23:28:18 -05:00
|
|
|
$days = glob("./2015/days/*.php");
|
2024-11-23 23:22:26 -05:00
|
|
|
foreach ($days as $day) {
|
|
|
|
|
require($day);
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-24 10:03:05 -05:00
|
|
|
$solutions = [];
|
2024-11-24 21:22:12 -05:00
|
|
|
/* $solutions['day_1']['part_1'] = day1solution1(); */
|
|
|
|
|
/* $solutions['day_1']['part_2'] = day1solution1b(); */
|
|
|
|
|
/* $solutions['day_2']['part_1'] = day2(1); */
|
|
|
|
|
/* $solutions['day_2']['part_2'] = day2(2); */
|
|
|
|
|
/* $solutions['day_3']['part_1'] = day3(1); */
|
|
|
|
|
/* $solutions['day_3']['part_2'] = day3(2); */
|
|
|
|
|
/* $solutions['day_4']['part_1'] = day4(1); */
|
|
|
|
|
/* $solutions['day_4']['part_2'] = day4(2); */
|
|
|
|
|
|
|
|
|
|
$solutions['day_5']['part_1'] = day5(1);
|
|
|
|
|
$solutions['day_5']['part_2'] = day5(2);
|
2024-11-23 23:22:26 -05:00
|
|
|
|
2024-11-24 10:03:05 -05:00
|
|
|
// OUTPUT THE SOLUTIONS WE HAVE.
|
|
|
|
|
foreach ($solutions as $day => $parts) {
|
|
|
|
|
foreach ($parts as $part => $answer) {
|
|
|
|
|
echo "*** The answer to $day $part is: $answer ***\n";
|
|
|
|
|
}
|
|
|
|
|
}
|