codingtests/ProjectEuler/013/solve.php
2012-03-08 14:52:32 +01:00

7 lines
153 B
PHP

<?php
$numbers = file('php://stdin');
$total = 0;
foreach($numbers as $number) {
$total = bcadd($total,trim($number));
}
echo substr($total,0,10);