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 = [];
|
|
|
|
|
$solutions['day_1']['part_1'] = day1solution1();
|
|
|
|
|
$solutions['day_1']['part_2'] = day1solution1b();
|
2024-11-24 10:06:50 -05:00
|
|
|
$solutions['day_2']['part_1'] = day2(1);
|
|
|
|
|
$solutions['day_2']['part_2'] = day2(2);
|
2024-11-24 18:54:26 -05:00
|
|
|
$solutions['day_3']['part_1'] = day3(1);
|
|
|
|
|
$solutions['day_3']['part_2'] = day3(2);
|
2024-11-24 19:29:04 -05:00
|
|
|
$solutions['day_4']['part_1'] = day4(1);
|
|
|
|
|
$solutions['day_4']['part_2'] = day4(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";
|
|
|
|
|
}
|
|
|
|
|
}
|