🎉 Hello world
This commit is contained in:
9
day_1/part_1.php
Normal file
9
day_1/part_1.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
$masses = explode(',', file_get_contents('input.txt'));
|
||||
|
||||
echo array_sum(
|
||||
array_map(function($mass) {
|
||||
return floor($mass / 3) - 2;
|
||||
}, $masses)
|
||||
);
|
Reference in New Issue
Block a user