Solution fixes
This commit is contained in:
parent
f813f39f8a
commit
5e5c726ebb
@ -9,7 +9,7 @@
|
||||
*/
|
||||
function day1solution1() {
|
||||
$start_time = microtime(true);
|
||||
$instructions = file_get_contents('./inputs/day1.txt');
|
||||
$instructions = file_get_contents('./2015/inputs/day1.txt');
|
||||
$up_floors = substr_count($instructions, "(");
|
||||
$down_floors = substr_count($instructions, ")");
|
||||
$total = $up_floors - $down_floors;
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
$days = glob('./days/*.php');
|
||||
$days = glob("./2015/days/*.php");
|
||||
foreach ($days as $day) {
|
||||
require($day);
|
||||
}
|
||||
|
||||
$day1 = day1solution1();
|
||||
$day1b = day1solution1b();
|
||||
$d1 = day1solution1();
|
||||
$d1b = day1solution1b();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user