Grid Computing.php help

Add a reply

Posted by grawity 189 days ago:
this forum doesn't seem very alive... anyway.

I tried this code:
<?php for($d=split('[ \n]',fread(STDIN,320));$r<10;$r++){$a=$b=$c=0;while($c<10)$s=max($s,$a+=intval($d[$r*10+$c],10),$b+=intval($d[$c++*10+$r],10));}echo $s;?>
Not very short, but this is my first attempt at golfcoding.

When I upload it, it fails every test. When I try the same inputs on my computer, everything works fine.
Any help?

Add a reply